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

NBF.h File Reference

#include "nvsgcommon.h"

Include dependency graph for NBF.h:

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

Go to the source code of this file.

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.
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.

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.
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.


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:43 2005 for NVSGSDK by NVIDIA