Blender V2.61 - r43446
Defines | Typedefs | Enumerations | Functions | Variables

DNA_genfile.h File Reference

blenloader genfile private function prototypes More...

Go to the source code of this file.

Defines

#define SDNA_TYPE_VOID   11

Typedefs

typedef enum eSDNA_Type eSDNA_Type

Enumerations

enum  eSDNA_Type {
  SDNA_TYPE_CHAR = 0, SDNA_TYPE_UCHAR = 1, SDNA_TYPE_SHORT = 2, SDNA_TYPE_USHORT = 3,
  SDNA_TYPE_INT = 4, SDNA_TYPE_LONG = 5, SDNA_TYPE_ULONG = 6, SDNA_TYPE_FLOAT = 7,
  SDNA_TYPE_DOUBLE = 8, SDNA_TYPE_INT64 = 9, SDNA_TYPE_UINT64 = 10
}

Functions

struct SDNADNA_sdna_from_data (void *data, int datalen, int do_endian_swap)
void DNA_sdna_free (struct SDNA *sdna)
int DNA_struct_find_nr (struct SDNA *sdna, const char *str)
void DNA_struct_switch_endian (struct SDNA *oldsdna, int oldSDNAnr, char *data)
char * DNA_struct_get_compareflags (struct SDNA *sdna, struct SDNA *newsdna)
void * DNA_struct_reconstruct (struct SDNA *newsdna, struct SDNA *oldsdna, char *compflags, int oldSDNAnr, int blocks, void *data)
int DNA_elem_array_size (const char *astr, int len)
int DNA_elem_offset (struct SDNA *sdna, const char *stype, const char *vartype, const char *name)
int DNA_elem_type_size (const eSDNA_Type elem_nr)

Variables

unsigned char DNAstr []
int DNAlen

Detailed Description

blenloader genfile private function prototypes

Definition in file DNA_genfile.h.


Define Documentation

#define SDNA_TYPE_VOID   11

Definition at line 57 of file DNA_genfile.h.

Referenced by init_structDNA().


Typedef Documentation

typedef enum eSDNA_Type eSDNA_Type

Enumeration Type Documentation

enum eSDNA_Type
Enumerator:
SDNA_TYPE_CHAR 
SDNA_TYPE_UCHAR 
SDNA_TYPE_SHORT 
SDNA_TYPE_USHORT 
SDNA_TYPE_INT 
SDNA_TYPE_LONG 
SDNA_TYPE_ULONG 
SDNA_TYPE_FLOAT 
SDNA_TYPE_DOUBLE 
SDNA_TYPE_INT64 
SDNA_TYPE_UINT64 

Definition at line 41 of file DNA_genfile.h.


Function Documentation

int DNA_elem_array_size ( const char *  astr,
int  len 
)
int DNA_elem_offset ( struct SDNA sdna,
const char *  stype,
const char *  vartype,
const char *  name 
)

Definition at line 1154 of file dna_genfile.c.

References DNA_struct_find_nr(), find_elem(), NULL, and SDNA::structs.

Referenced by read_file_dna().

int DNA_elem_type_size ( const eSDNA_Type  elem_nr)
void DNA_sdna_free ( struct SDNA sdna)
struct SDNA* DNA_sdna_from_data ( void *  data,
int  datalen,
int  do_endian_swap 
) [read]
int DNA_struct_find_nr ( struct SDNA sdna,
const char *  str 
)
char* DNA_struct_get_compareflags ( struct SDNA sdna,
struct SDNA newsdna 
)
void* DNA_struct_reconstruct ( struct SDNA newsdna,
struct SDNA oldsdna,
char *  compflags,
int  oldSDNAnr,
int  blocks,
void *  data 
)
void DNA_struct_switch_endian ( struct SDNA oldsdna,
int  oldSDNAnr,
char *  data 
)

Variable Documentation

int DNAlen
unsigned char DNAstr[]