16 #ifndef BBINFILETK_SHELL
17 #define BBINFILETK_SHELL
20 #include "BPolyhedron.h"
128 void set_flist (
int count,
int const * list = 0)
alter { SetFaces( count, list ); };
145 #define SEMI_PROTECT(x) do {x} while (0)
148 #define ENSURE_ALLOCATED(var,type,count) SEMI_PROTECT( \
150 (var) = new type[(count)]; \
156 #define ENSURE_ALLOCATED_CLEAR(var,type,count) SEMI_PROTECT( \
158 (var) = new type[(count)]; \
161 memset (var, 0, (count) * sizeof(type)); \
Handles the TKE_Shell opcode.
Definition: BOpcodeShell.h:31
int m_substage
Definition: BOpcodeShell.h:67
Contains datatypes which are used by BBaseOpcodeHandler.
#define alter
complementary to const, indicates we thought about it instead of a forgotten "const" ...
Definition: BStream.h:225
int m_flistlen
Definition: BOpcodeShell.h:69
int * m_flist
Definition: BOpcodeShell.h:70
char m_lodlevel
Definition: BOpcodeShell.h:71
int const * GetFaces() const
Definition: BOpcodeShell.h:114
virtual TK_Status Read(BStreamFileToolkit &tk) alter=0
int GetFacesLength() const
Definition: BOpcodeShell.h:116
Definition: BStream.h:238
int GetLodLevel() const
Definition: BOpcodeShell.h:118
TK_Status
Codes which can be either passed to various toolkit functions, or indicate the result of a toolkit fu...
Definition: BStream.h:237
void set_flist(int count, int const *list=0) alter
obsolete. Provided for compatibility
Definition: BOpcodeShell.h:128
virtual void Reset() alter
Base class for shell and mesh.
Definition: BPolyhedron.h:25
virtual TK_Status Write(BStreamFileToolkit &tk) alter=0
unsigned char m_compression_scheme
Definition: BOpcodeShell.h:68