3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scalc::TexPool Class Reference

the TexPool used to cache textures allocation for the calculations. The pool used internally, no need to use it directly. More...

#include <ShaderCalc.h>

Static Public Member Functions

static int get (bool rendertarget, int &height, comms::cFormat::Enum format)
 get the free texture for calculations from the pool. If the similar texture exists in pool, it will not be allocated, but taken from the pool. More...
 
static void free (int id)
 free the texture if it exists in the pool More...
 
static void returnToPool (int id)
 return the texture to the pool to use in other calculations. More...
 
static void freeAll ()
 free all textures in the pool More...
 

Detailed Description

the TexPool used to cache textures allocation for the calculations. The pool used internally, no need to use it directly.

Member Function Documentation

void scalc::TexPool::free ( int  id)
static

free the texture if it exists in the pool

void scalc::TexPool::freeAll ( )
static

free all textures in the pool

int scalc::TexPool::get ( bool  rendertarget,
int &  height,
comms::cFormat::Enum  format 
)
static

get the free texture for calculations from the pool. If the similar texture exists in pool, it will not be allocated, but taken from the pool.

void scalc::TexPool::returnToPool ( int  id)
static

return the texture to the pool to use in other calculations.

Referenced by scalc::ShaderCalc::FreeTextures(), scalc::ShaderCalc::Output(), and scalc::ShaderCalc::ReturnTexturesToCommonPool().


The documentation for this class was generated from the following files: