Blender V2.61 - r43446
Public Member Functions

BL_BlenderShader Class Reference

#include <BL_BlenderShader.h>

List of all members.

Public Member Functions

 BL_BlenderShader (KX_Scene *scene, struct Material *ma, int lightlayer)
virtual ~BL_BlenderShader ()
bool Ok ()
void SetProg (bool enable, double time=0.0)
int GetAttribNum ()
void SetAttribs (class RAS_IRasterizer *ras, const BL_Material *mat)
void Update (const class RAS_MeshSlot &ms, class RAS_IRasterizer *rasty)
void ReloadMaterial ()
int GetAlphaBlend ()
void SetScene (KX_Scene *scene)
bool Equals (BL_BlenderShader *blshader)

Detailed Description

BL_BlenderShader Blender GPU shader material

Definition at line 57 of file BL_BlenderShader.h.


Constructor & Destructor Documentation

BL_BlenderShader::BL_BlenderShader ( KX_Scene scene,
struct Material ma,
int  lightlayer 
)
BL_BlenderShader::~BL_BlenderShader ( ) [virtual]

Definition at line 36 of file BL_BlenderShader.cpp.

References GPU_material_unbind().


Member Function Documentation

bool BL_BlenderShader::Equals ( BL_BlenderShader blshader)

Definition at line 161 of file BL_BlenderShader.cpp.

int BL_BlenderShader::GetAlphaBlend ( )

Definition at line 156 of file BL_BlenderShader.cpp.

Referenced by KX_BlenderMaterial::ActivateMeshSlot().

int BL_BlenderShader::GetAttribNum ( )
bool BL_BlenderShader::Ok ( ) [inline]

Definition at line 76 of file BL_BlenderShader.h.

References NULL.

Referenced by KX_BlenderMaterial::Activate().

void BL_BlenderShader::ReloadMaterial ( )

Definition at line 42 of file BL_BlenderShader.cpp.

References GPU_material_from_blender(), and NULL.

Referenced by BL_BlenderShader(), and SetScene().

void BL_BlenderShader::SetAttribs ( class RAS_IRasterizer ras,
const BL_Material mat 
)
void BL_BlenderShader::SetProg ( bool  enable,
double  time = 0.0 
)
void BL_BlenderShader::SetScene ( KX_Scene scene) [inline]

Definition at line 89 of file BL_BlenderShader.h.

References KX_Scene::GetBlenderScene(), and ReloadMaterial().

Referenced by KX_BlenderMaterial::Replace_IScene().

void BL_BlenderShader::Update ( const class RAS_MeshSlot ms,
class RAS_IRasterizer rasty 
)

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