#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.
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... |
|
Specifies an 8-bit signed type.
|
|
Specifies an 8-bit unsigned type.
|
|
Specifies a 32-bit signed integer type.
|
|
Specifies a 32-bit unsigned integer type.
|
|
Specifies a 64-bit unsigned integer type.
|
|
Specifies a 2-component float vector.
|
|
Specifies a 3-component float vector.
|
|
Specifies a 4-component float vector.
|
|
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.
|
|
NBF major version number.
|
|
NBF version compatibility level.
|
|
NBF version bugfix level.
|
|
Specifies little endian byte order.
|
|
Specifies big endian byte order.
|