HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RE_ShaderStage Class Referenceabstract

#include <RE_Shader.h>

Public Member Functions

 RE_ShaderStage (RE_ShaderType stype, const char *name=0)
 
virtual ~RE_ShaderStage ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
const char * getName () const
 
RE_ShaderType getShaderType () const
 
const UT_StringgetFilename () const
 
void setFilename (const char *fname)
 
bool loadShader (RE_Render *r, const char *filename, UT_String *messages=NULL, bool dump_source_on_error=true, const char *defines=NULL, int default_code_version=RE_Shader::USE_GLSL_BASE_VERSION)
 
virtual bool setSource (RE_Render *r, const char *source_code, int version, UT_String *messages=NULL, bool dump_source_on_error=true)=0
 
virtual bool getSource (RE_Render *r, UT_String &source)
 
void setID (int id)
 
int getID () const
 
int getCodeVersion () const
 

Protected Member Functions

void setCodeVersion (int v)
 

Detailed Description

Definition at line 1084 of file RE_Shader.h.

Constructor & Destructor Documentation

RE_ShaderStage::RE_ShaderStage ( RE_ShaderType  stype,
const char *  name = 0 
)
virtual RE_ShaderStage::~RE_ShaderStage ( )
virtual

Member Function Documentation

int RE_ShaderStage::getCodeVersion ( ) const
inline

Definition at line 1129 of file RE_Shader.h.

const UT_String& RE_ShaderStage::getFilename ( ) const
inline

Definition at line 1104 of file RE_Shader.h.

int RE_ShaderStage::getID ( ) const
inline

Definition at line 1126 of file RE_Shader.h.

virtual int64 RE_ShaderStage::getMemoryUsage ( bool  inclusive) const
inlinevirtual

Returns the amount of main memory (NOT graphics memory!) owned by this RE_ShaderStage.

Definition at line 1093 of file RE_Shader.h.

const char* RE_ShaderStage::getName ( void  ) const
inline

Definition at line 1101 of file RE_Shader.h.

RE_ShaderType RE_ShaderStage::getShaderType ( ) const
inline

Definition at line 1102 of file RE_Shader.h.

virtual bool RE_ShaderStage::getSource ( RE_Render r,
UT_String source 
)
virtual
bool RE_ShaderStage::loadShader ( RE_Render r,
const char *  filename,
UT_String messages = NULL,
bool  dump_source_on_error = true,
const char *  defines = NULL,
int  default_code_version = RE_Shader::USE_GLSL_BASE_VERSION 
)
void RE_ShaderStage::setCodeVersion ( int  v)
inlineprotected

Definition at line 1131 of file RE_Shader.h.

void RE_ShaderStage::setFilename ( const char *  fname)
inline

Definition at line 1105 of file RE_Shader.h.

void RE_ShaderStage::setID ( int  id)
inline

Definition at line 1125 of file RE_Shader.h.

virtual bool RE_ShaderStage::setSource ( RE_Render r,
const char *  source_code,
int  version,
UT_String messages = NULL,
bool  dump_source_on_error = true 
)
pure virtual

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