HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_LightBatch Class Reference

#include <RE_LightBatch.h>

Public Member Functions

 RE_LightBatch (int max_lights, RE_Light::RE_HQLightType type, bool use_ssbo=false)
 
 ~RE_LightBatch ()
 
RE_Light::RE_HQLightType batchType () const
 
int getID () const
 
int batchSize () const
 
bool addLight (RE_Light *light)
 
void removeLight (RE_Light *light)
 
void prepareBatch (RE_Render *r, int area_samples=1)
 
void prepShadowMap (RE_Render *r, int res)
 
void bindToShader (RE_Render *r, RE_Shader *sh)
 
void unbindFromShader (RE_Render *r, RE_Shader *sh)
 
const UT_Array< RE_Light * > & lights ()
 
void dump ()
 

Static Public Member Functions

static RE_LightBatchfindBatch (int id)
 

Detailed Description

Definition at line 23 of file RE_LightBatch.h.

Constructor & Destructor Documentation

RE_LightBatch::RE_LightBatch ( int  max_lights,
RE_Light::RE_HQLightType  type,
bool  use_ssbo = false 
)
RE_LightBatch::~RE_LightBatch ( )

Member Function Documentation

bool RE_LightBatch::addLight ( RE_Light light)
int RE_LightBatch::batchSize ( ) const
inline

Definition at line 36 of file RE_LightBatch.h.

RE_Light::RE_HQLightType RE_LightBatch::batchType ( ) const
inline

Definition at line 31 of file RE_LightBatch.h.

void RE_LightBatch::bindToShader ( RE_Render r,
RE_Shader sh 
)
void RE_LightBatch::dump ( )
static RE_LightBatch* RE_LightBatch::findBatch ( int  id)
static
int RE_LightBatch::getID ( ) const
inline

Definition at line 35 of file RE_LightBatch.h.

const UT_Array<RE_Light *>& RE_LightBatch::lights ( )
inline

Definition at line 48 of file RE_LightBatch.h.

void RE_LightBatch::prepareBatch ( RE_Render r,
int  area_samples = 1 
)
void RE_LightBatch::prepShadowMap ( RE_Render r,
int  res 
)
void RE_LightBatch::removeLight ( RE_Light light)
void RE_LightBatch::unbindFromShader ( RE_Render r,
RE_Shader sh 
)

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