Panda3D
Public Types | Public Member Functions | List of all members
BamEnums Class Reference

This class exists just to provide scoping for the enums shared by BamReader and BamWriter. More...

#include <pandadoc.hpp>

Inheritance diagram for BamEnums:
BamFile BamReader BamWriter

Public Types

enum  BamEndian { BE_bigendian = 0 , BE_littleendian = 1 , BE_native = 1 }
 This defines an enumerated type used to represent the endianness of certain numeric values stored in a Bam file. More...
 
enum  BamObjectCode {
  BOC_push = 0 , BOC_pop = 1 , BOC_adjunct = 2 , BOC_remove = 3 ,
  BOC_file_data = 4
}
 This is the code written along with each object. More...
 
enum  BamTextureMode {
  BTM_unchanged = 0 , BTM_fullpath = 1 , BTM_relative = 2 , BTM_basename = 3 ,
  BTM_rawdata = 4
}
 

Public Member Functions

 __init__ ()
 
 __init__ (const BamEnums)
 

Detailed Description

This class exists just to provide scoping for the enums shared by BamReader and BamWriter.

Member Enumeration Documentation

◆ BamEndian

enum BamEndian

This defines an enumerated type used to represent the endianness of certain numeric values stored in a Bam file.

It really has only two possible values, either BE_bigendian or BE_littleendian; but through a preprocessor trick we also add BE_native, which is the same numerically as whichever value the hardware supports natively.

Enumerator
BE_bigendian 
BE_littleendian 
BE_native 

◆ BamObjectCode

This is the code written along with each object.

It is used to control object scoping.

Enumerator
BOC_push 

Indicates an object definition, and will always be eventually paired with a BOC_pop (which does not).

BOC_pop 
BOC_adjunct 

Includes an object definition but does not push the level; it is associated with the current level.

BOC_remove 

Lists object IDs that have been deallocated on the sender end.

BOC_file_data 

May appear at any level and indicates the following datagram contains auxiliary file data that may be referenced by a later object.

◆ BamTextureMode

Enumerator
BTM_unchanged 
BTM_fullpath 
BTM_relative 
BTM_basename 
BTM_rawdata 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const  BamEnums)