Structure containing the definition of the material. More...
#include <dr_mtl.h>
Public Attributes | |
unsigned int | bufferSizeInBytes |
The size of the buffer, in bytes. This is used to determine when the buffer needs to be inflated. More... | |
unsigned int | currentChannelOffset |
unsigned int | currentStage |
bool | ownsRawData |
drmtl_uint8 * | pRawData |
A pointer to the raw data. This will at least be the size of drmtl_header (128 bytes, as of version 1). More... | |
unsigned int | sizeInBytes |
The size of the data, in bytes. More... | |
Structure containing the definition of the material.
Definition at line 581 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
unsigned int drmtl_material::bufferSizeInBytes |
The size of the buffer, in bytes. This is used to determine when the buffer needs to be inflated.
Definition at line 590 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
unsigned int drmtl_material::currentChannelOffset |
The offset of the current channel. This is needed to we can determine which bytes need to be updated as instructions are added to the channel.
Definition at line 599 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
unsigned int drmtl_material::currentStage |
The current stage of the construction process of the material. A material must be constructed in order, so this keeps track of the current stage to ensure the proper errors are returned.
Definition at line 595 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
bool drmtl_material::ownsRawData |
Whether or not the material data is owned by this library. When this is set to false, the library will never modify the original pointer.
Definition at line 604 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
drmtl_uint8 * drmtl_material::pRawData |
A pointer to the raw data. This will at least be the size of drmtl_header (128 bytes, as of version 1).
Definition at line 584 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.
unsigned int drmtl_material::sizeInBytes |
The size of the data, in bytes.
Definition at line 587 of file porcupine/demo/c/dr_libs/old/dr_mtl.h.