![]() TGE Version 1.5.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TSShapeAlloc Class Reference#include <tsShapeAlloc.h>
Detailed DescriptionAlloc structure used in the reading/writing of shapes.In read mode we assemble contents of 32-bit, 16-bit, and 8-bit buffers into a single destination buffer. In write mode we dissemble a stream of memory (which may be scattered in physical memory) into 32-bit, 16-bit, 8-bit, Point3F, and Point2F buffers using function calls similar to the read calls. Read usage: 1. call "setRead" with each incoming memory buffers and clear=true. 2. run through set of operations for allocating and transfering memory to target buffer these are the operations under "DECLARE_ALLOC" that call readOnly in the .cc file. 3. call "doAlloc" to create buffer exactly as large as needed. 4. repeat step 1 & 2 to do the actual transfer of memory, except with clear=false (note: first time through nothing was copied to the shape, we only kept track of the size of the transfer). 5. call getBuffer to get the target (destination buffer) write usage: 1. call "setWrite" (no parameters). 2. run through set of operations for allocating and transfering memory to internal buffers these are the operations under "DECLARE_ALLOC" that call writeOnly in the .cc file. 3. call getBuffer32 and getBufferSize32 to get 32-bit buffer and size. Similarly for 16-bit, 8-bit (getBuffer16, getBuffer8). TSShape::assesmbleShape and TSShape::dissembleShape can be used as examples
Member Enumeration Documentation
Member Function Documentation
align on dword boundary
Field Documentation
read or write
reading and writing (when reading these are the input; when writing these are the output)
for writing only...
reading and writing...
reading
reading only...this is the output
mult incoming sizes by this (when 0, then mDest doesn't grow --> skip mode)
|