Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Simplify Command definition


Defines

#define N_(name)   name, # name
 create a, "a" from the macro name a
#define __(name)   name, 1, 1, # name
 define a single element
#define A_(name)   name(0), name ## __SIZE, (name (name ## __SIZE) - name(0))/name ## __SIZE , # name "(%d)"

Detailed Description

These macros allow for simplification of the definition of commands, especially for commands which are used as an array, i.e. matrices, vertices etc.

So the abstract NV_FIELD(i) = (start + i*stride), its size is the number of elements in the array and later use an A_() instead of __() in nv_objects.


Define Documentation

#define __ name   )     name, 1, 1, # name
 

define a single element

#define A_ name   )     name(0), name ## __SIZE, (name (name ## __SIZE) - name(0))/name ## __SIZE , # name "(%d)"
 

Simply array definition, setup the object_field_store. Please define name__SIZE to the size of the array.

#define N_ name   )     name, # name
 

create a, "a" from the macro name a


Generated on Sat Aug 19 20:40:55 2006 for Renouveau by  doxygen 1.4.4