CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csShaderVarBlockAlloc Class Reference

A block allocator for shader variables. More...

#include <csgfx/shadervarblockalloc.h>

List of all members.

Public Member Functions

csRef< csShaderVariableAlloc ()
 Allocate a new shader variable.
 csShaderVarBlockAlloc (size_t nelem=32, bool warn_unfreed=false)
 Construct a new allocator.

Friends

class BlockAllocatedSV


Detailed Description

A block allocator for shader variables.

Remarks:
Check the csBlockAllocator documentation for information on general block allocators.

Definition at line 38 of file shadervarblockalloc.h.


Constructor & Destructor Documentation

csShaderVarBlockAlloc::csShaderVarBlockAlloc size_t  nelem = 32,
bool  warn_unfreed = false
[inline]
 

Construct a new allocator.

Remarks:
The parameters are the same as to csBlockAllocator<T>::csBlockAllocator().

Definition at line 53 of file shadervarblockalloc.h.


Member Function Documentation

csRef<csShaderVariable> csShaderVarBlockAlloc::Alloc  )  [inline]
 

Allocate a new shader variable.

Remarks:
Returned object freed when all references are released, but when the allocating block allocator is freed. Make sure no references are kept to objects created by an allocator past its lifetime.

Definition at line 61 of file shadervarblockalloc.h.

References csBlockAllocator< T, BlockPolicy >::Alloc(), and BlockAllocatedSV.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4