Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

NBF.h File Reference

#include "nvsgcommon.h"

Include dependency graph for NBF.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  str_t
 The str_t structure specifies how a string is stored in a .NBF file. More...

struct  texCoordSet_t
 The texCoordSet_t structure specifies how a texture coordinate set is stored in a .NBF file. More...

struct  geometrySet_t
 The geometrySet_t structure specifies how a geometry set is stored in a .NBF file. More...

struct  indexSet_t
 The indexSet_t structure specifies how an index set is stored in a .NBF file. More...

struct  texBinding_t
 The texBinding_t structure specifies how a texture binding is stored in a .NBF file. More...

struct  trafo_t
 The trafo_t structure specifies how a transfrmation is stored in a .NBF file. More...

struct  tweak_t
 The tweak_t structure specifies how a tweakable parameter is stored in a .NBF file. More...

struct  bone_t
 The bone_t structure specifies how a bone is stored in a .NBF file. More...

struct  skin_t
 The skin_t structure specifies how a skin is stored in a .NBF file. More...

struct  NBFHeader
 The NBFHeader structure represents the NBF header format. More...

struct  NBFScene
 The NBFScene structure represents a scene in the context of computer graphics. More...

struct  NBFViewState
 The NBFViewState represents an optional view state used to render the scene. More...

struct  NBFObject
 The NBFObject structure represents general object data. More...

struct  NBFTrafoAnimation
 The NBFTrafoAnimation represents an animation that will be applied to trafo_t objects. More...

struct  NBFVNVectorAnimation
 The NBFVNVectorAnimation represents an animation that will be applied to VNVector objects. More...

struct  NBFFramedAnimation
 The NBFFramedAnimation structure represents a framed animation. More...

struct  NBFFramedTrafoAnimation
 The NBFFramedTrafoAnimation structure represents a framed animation that will be applied to trafo_t objects. More...

struct  NBFFramedVNVectorAnimation
 The NBFFramedVNVectorAnimation structure represents a framed animation that will be applied to VNVector objects. More...

struct  NBFInterpolatedAnimation
 The NBFInterpolatedAnimation structure represents a interpolated animation. More...

struct  NBFInterpolatedTrafoAnimation
 The NBFInterpolatedTrafoAnimation structure represents a interpolated animation that will be applied to trafo_t objects. More...

struct  NBFInterpolatedVNVectorAnimation
 The NBFInterpolatedVNVectorAnimation structure represents a interpolated animation that will be applied to VNVector objects. More...

struct  NBFCamera
 The NBFCamera structure represents a camera. More...

struct  NBFMonoCamera
 The NBFMonoCamera structure represents a monoscopic camera. More...

struct  NBFJitterCamera
 The NBFJitterCamera structure represents a monoscopic jitter camera. More...

struct  NBFSimpleCamera
 The NBFSimpleCamera represents a simple monoscopic camera. More...

struct  NBFParallelCamera
 The NBFParallelCamera represents a parallel camera. More...

struct  NBFPerspectiveCamera
 The NBFPerspectiveCamera represents a perspective camera. More...

struct  NBFStereoCamera
 The NBFStereoCamera represents a stereoscopic camera. More...

struct  NBFDrawable
 The NBFDrawable represents any kind of a drawable object. More...

struct  NBFGeoSet
 The NBFGeoSet structure represents a set of vertex attributes. More...

struct  NBFTriangles
 The NBFTriangles structure represents a set of independent triangles. More...

struct  NBFAnimatedTriangles
 The NBFAnimatedTriangles structure represents animated triangles. More...

struct  NBFSkinnedTriangles
 The NBFSkinnedTriangles structure represents skin animated triangles. More...

struct  NBFStrips
 The NBFStrips structure represents a strip set. More...

struct  NBFQuads
 The NBFQuads structure represents a set of independent quads. More...

struct  NBFAnimatedQuads
 The NBFAnimatedQuads structure represents animated quads. More...

struct  NBFNode
 The NBFNode structure represents a general node. More...

struct  NBFGeoNode
 The NBFGeoNode structure represents a geometry node. More...

struct  NBFGroup
 The NBFGroup structure represents a group node. More...

struct  NBFLOD
 The NBFLOD structure represents a 'Level Of Detail' group node. More...

struct  NBFSwitch
 The NBFSwitch structure represents a switch group node. More...

struct  NBFTransform
 The NBFTransform structure represents a transform group node. More...

struct  NBFAnimatedTransform
 The NBFAnimatedTransform structure represents an animated transform group node. More...

struct  NBFLightSource
 The NBFLightSource structure represents a light source node. More...

struct  NBFDirectedLight
struct  NBFPointLight
struct  NBFSpotLight
struct  NBFStateSet
 The NBFStateSet structure represents a set of heterogeneous NBFStateAttributes. More...

struct  NBFStateAttribute
 The NBFStateAttribute structure represents a state attribute. More...

struct  NBFCgFx
 The NBFCgFx structure represents an effect attribute. More...

struct  NBFFaceAttribute
 The NBFFaceAttribute structure represents a render mode. More...

struct  NBFMaterial
 The NBFMaterial structure represents a material. More...

struct  NBFTextureAttribute
 The NBFTextureAttribute structure represents a texture attribute. More...

struct  NBFTextureAttributeItem
 The NBFTextureAttributeItem structure represents a single texture object. More...


Defines

#define PADDING(n)   PADDING_i(n,__LINE__)
#define PADDING_i(n, l)   PADDING_ii(n,l)
#define PADDING_ii(n, l)   ubyte_t padding##l[n]

Typedefs

typedef char byte_t
 Specifies an 8-bit signed type. More...

typedef unsigned char ubyte_t
 Specifies an 8-bit unsigned type. More...

typedef int int_t
 Specifies a 32-bit signed integer type. More...

typedef unsigned int uint_t
 Specifies a 32-bit unsigned integer type. More...

typedef unsigned long long uint64_t
 Specifies a 64-bit unsigned integer type. More...

typedef float float2_t [2]
 Specifies a 2-component float vector. More...

typedef float float3_t [3]
 Specifies a 3-component float vector. More...

typedef float float4_t [4]
 Specifies a 4-component float vector. More...


Enumerations

enum  {
  NBF_UNKNOWN = 0x00000000, NBF_TRAFO_ANIMATION = 0x00000100, NBF_VNVECTOR_ANIMATION, NBF_FRAMED_ANIMATION = 0x00000120,
  NBF_FRAMED_TRAFO_ANIMATION, NBF_FRAMED_VNVECTOR_ANIMATION, NBF_INTERPOLATED_ANIMATION = 0x00000140, NBF_LINEAR_INTERPOLATED_TRAFO_ANIMATION,
  NBF_LINEAR_INTERPOLATED_VNVECTOR_ANIMATION, NBF_CAMERA = 0x00000200, NBF_MONO_CAMERA, NBF_JITTER_CAMERA,
  NBF_SIMPLE_CAMERA, NBF_PARALLEL_CAMERA, NBF_PERSPECTIVE_CAMERA, NBF_STEREO_CAMERA,
  NBF_DRAWABLE = 0x00000300, NBF_GEO_SET, NBF_TRIANGLES, NBF_ANIMATED_TRIANGLES,
  NBF_SKINNED_TRIANGLES, NBF_TRISTRIPS, NBF_QUADS, NBF_ANIMATED_QUADS,
  NBF_QUADSTRIPS, NBF_NODE = 0x00000400, NBF_GEO_NODE, NBF_GROUP,
  NBF_LOD, NBF_SWITCH, NBF_TRANSFORM, NBF_ANIMATED_TRANSFORM,
  NBF_LIGHT_SOURCE, NBF_DIRECTED_LIGHT, NBF_POINT_LIGHT, NBF_SPOT_LIGHT,
  NBF_STATE_SET = 0x00000500, NBF_STATE_ATTRIBUTE = 0x00000600, NBF_CGFX, NBF_MATERIAL,
  NBF_FACE_ATTRIBUTE, NBF_TEXTURE_ATTRIBUTE, NBF_TEXTURE_ATTRIBUTE_ITEM, NBF_CUSTOM_OBJECT
}
 Unique NBF Object Codes. More...


Functions

 __CTASSERT (sizeof(str_t)%4==0)
 __CTASSERT (sizeof(texCoordSet_t)%4==0)
 __CTASSERT (sizeof(geometrySet_t)%4==0)
 __CTASSERT (sizeof(indexSet_t)%4==0)
 __CTASSERT (sizeof(texBinding_t)%4==0)
 __CTASSERT (sizeof(trafo_t)%4==0)
 __CTASSERT (sizeof(tweak_t)%4==0)
 __CTASSERT (sizeof(bone_t)%4==0)
 __CTASSERT (sizeof(skin_t)%4==0)
 __CTASSERT (sizeof(NBFHeader)%4==0)
 __CTASSERT (sizeof(NBFScene)%4==0)
 __CTASSERT (sizeof(NBFViewState)%4==0)
 __CTASSERT (sizeof(NBFObject)%8==0)
 __CTASSERT (sizeof(NBFTrafoAnimation)%8==0)
 __CTASSERT (sizeof(NBFVNVectorAnimation)%8==0)
 __CTASSERT (sizeof(NBFFramedAnimation)%4==0)
 __CTASSERT (sizeof(NBFFramedTrafoAnimation)%8==0)
 __CTASSERT (sizeof(NBFFramedVNVectorAnimation)%8==0)
 __CTASSERT (sizeof(NBFInterpolatedAnimation)%4==0)
 __CTASSERT (sizeof(NBFInterpolatedTrafoAnimation)%8==0)
 __CTASSERT (sizeof(NBFInterpolatedVNVectorAnimation)%8==0)
 __CTASSERT (sizeof(NBFCamera)%8==0)
 __CTASSERT (sizeof(NBFMonoCamera)%8==0)
 __CTASSERT (sizeof(NBFJitterCamera)%8==0)
 __CTASSERT (sizeof(NBFSimpleCamera)%8==0)
 __CTASSERT (sizeof(NBFParallelCamera)%8==0)
 __CTASSERT (sizeof(NBFPerspectiveCamera)%8==0)
 __CTASSERT (sizeof(NBFStereoCamera)%8==0)
 __CTASSERT (sizeof(NBFDrawable)%8==0)
 __CTASSERT (sizeof(NBFGeoSet)%8==0)
 __CTASSERT (sizeof(NBFTriangles)%8==0)
 __CTASSERT (sizeof(NBFAnimatedTriangles)%8==0)
 __CTASSERT (sizeof(NBFSkinnedTriangles)%8==0)
 __CTASSERT (sizeof(NBFStrips)%8==0)
 __CTASSERT (sizeof(NBFQuads)%8==0)
 __CTASSERT (sizeof(NBFAnimatedQuads)%8==0)
 __CTASSERT (sizeof(NBFNode)%8==0)
 __CTASSERT (sizeof(NBFGeoNode)%8==0)
 __CTASSERT (sizeof(NBFGroup)%8==0)
 __CTASSERT (sizeof(NBFLOD)%8==0)
 __CTASSERT (sizeof(NBFSwitch)%8==0)
 __CTASSERT (sizeof(NBFTransform)%8==0)
 __CTASSERT (sizeof(NBFAnimatedTransform)%8==0)
 __CTASSERT (sizeof(NBFLightSource)%8==0)
 __CTASSERT (sizeof(NBFDirectedLight)%8==0)
 __CTASSERT (sizeof(NBFPointLight)%8==0)
 __CTASSERT (sizeof(NBFSpotLight)%8==0)
 __CTASSERT (sizeof(NBFStateSet)%8==0)
 __CTASSERT (sizeof(NBFStateAttribute)%8==0)
 __CTASSERT (sizeof(NBFCgFx)%8==0)
 __CTASSERT (sizeof(NBFFaceAttribute)%8==0)
 __CTASSERT (sizeof(NBFMaterial)%8==0)
 __CTASSERT (sizeof(NBFTextureAttribute)%8==0)
 __CTASSERT (sizeof(NBFTextureAttributeItem)%8==0)

Variables

const ubyte_t NBF_VER_MAJOR = 0x04
 NBF major version number. More...

const ubyte_t NBF_VER_MINOR = 0x01
 NBF version compatibility level. More...

const ubyte_t NBF_VER_BUGFIX = 0x00
 NBF version bugfix level. More...

const ubyte_t NBF_LITTLE_ENDIAN = 0x00
 Specifies little endian byte order. More...

const ubyte_t NBF_BIG_ENDIAN = 0x01
 Specifies big endian byte order. More...


Detailed Description


Typedef Documentation

typedef char byte_t
 

Specifies an 8-bit signed type.

typedef unsigned char ubyte_t
 

Specifies an 8-bit unsigned type.

typedef int int_t
 

Specifies a 32-bit signed integer type.

typedef unsigned int uint_t
 

Specifies a 32-bit unsigned integer type.

typedef unsigned long long uint64_t
 

Specifies a 64-bit unsigned integer type.

typedef float float2_t[2]
 

Specifies a 2-component float vector.

typedef float float3_t[3]
 

Specifies a 3-component float vector.

typedef float float4_t[4]
 

Specifies a 4-component float vector.


Enumeration Type Documentation

anonymous enum
 

Unique NBF Object Codes.

Each concrete NBFObject type is assigned to a unique NBF object code. This code is a 32-bit unsigned integer value, stored at offset 0, of each concrete NBFObject. The purpose of the unique 'per-object' code is to provide a Load-Time Type Information (LTTI) to resolve concrete NBFObjects while loading NBF files.

Enumeration values:
NBF_UNKNOWN  Unknown, and hence, invalid object code.
NBF_FRAMED_TRAFO_ANIMATION  Identifies an NBFFramedTrafoAnimation object.
NBF_FRAMED_VNVECTOR_ANIMATION  Identifies an NBFFramedVNVectorAnimation object.
NBF_LINEAR_INTERPOLATED_TRAFO_ANIMATION  Identifies an NBFInterpolatedTrafoAnimation object.
NBF_LINEAR_INTERPOLATED_VNVECTOR_ANIMATION  Identifies an NBFInterpolatedVNVectorAnimation object.
NBF_PARALLEL_CAMERA  Identifies an NBFParallelCamera object.
NBF_PERSPECTIVE_CAMERA  Identifies an NBFPerspectiveCamera object.
NBF_TRIANGLES  Identifies an NBFTriangles object.
NBF_ANIMATED_TRIANGLES  Identifies an NBFAnimatedTriangles object.
NBF_SKINNED_TRIANGLES  Identifies an NBFSkinnedTriangles object.
NBF_TRISTRIPS  Identifies an NBFStrips object.
NBF_QUADS  Identifies an NBFQuads object (support since v0.3).
NBF_ANIMATED_QUADS  Identifies an NBFAnimatedQuads object (support since v0.4).
NBF_QUADSTRIPS  Identifies an NBFStrips object (support since v0.4).
NBF_GEO_NODE  Identifies a NBFGeoNode object.
NBF_GROUP  Identifies a NBFGroup object.
NBF_LOD  Identifies a NBFLOD object.
NBF_SWITCH  Identifies a NBFSwitch object.
NBF_TRANSFORM  Identifies a NBFTransform object.
NBF_ANIMATED_TRANSFORM  Identifies a NBFAnimatedTransform object.
NBF_DIRECTED_LIGHT  Identifies an NBFDirectedLight object.
NBF_POINT_LIGHT  Identifies an NBFPointLight object.
NBF_SPOT_LIGHT  Identifies an NBFSpotLight object.
NBF_STATE_SET  Identifies an NBFStateSet object.
NBF_CGFX  Identifies an NBFCgFx object.
NBF_MATERIAL  Identifies an NBFMaterial object.
NBF_FACE_ATTRIBUTE  Identifies an NBFFaceAttribute object.
NBF_TEXTURE_ATTRIBUTE  Identifies an NBFTextureAttribute object.
NBF_TEXTURE_ATTRIBUTE_ITEM  Identifies an NBFTextureAttributeItem object.
NBF_CUSTOM_OBJECT  Custom objects must not have codes lower than this.


Variable Documentation

const ubyte_t NBF_VER_MAJOR = 0x04
 

NBF major version number.

const ubyte_t NBF_VER_MINOR = 0x01
 

NBF version compatibility level.

const ubyte_t NBF_VER_BUGFIX = 0x00
 

NBF version bugfix level.

const ubyte_t NBF_LITTLE_ENDIAN = 0x00
 

Specifies little endian byte order.

const ubyte_t NBF_BIG_ENDIAN = 0x01
 

Specifies big endian byte order.


Generated on Tue Mar 1 13:19:38 2005 for NVSGSDK by NVIDIA