All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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=nullptr, bool dump_source_on_error=true, const char *defines=nullptr, int default_code_version=RE_Shader::USE_GLSL_BASE_VERSION, int max_verts=-1)
virtual bool setSource (RE_Render *r, const char *source_code, int version, UT_String *messages=nullptr, 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 1122 of file RE_Shader.h.

Constructor & Destructor Documentation

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

Member Function Documentation

int RE_ShaderStage::getCodeVersion ( ) const

Definition at line 1168 of file RE_Shader.h.

const UT_String& RE_ShaderStage::getFilename ( ) const

Definition at line 1142 of file RE_Shader.h.

int RE_ShaderStage::getID ( ) const

Definition at line 1165 of file RE_Shader.h.

virtual int64 RE_ShaderStage::getMemoryUsage ( bool  inclusive) const

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

Definition at line 1131 of file RE_Shader.h.

const char* RE_ShaderStage::getName ( ) const

Definition at line 1139 of file RE_Shader.h.

RE_ShaderType RE_ShaderStage::getShaderType ( ) const

Definition at line 1140 of file RE_Shader.h.

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

Definition at line 1170 of file RE_Shader.h.

void RE_ShaderStage::setFilename ( const char *  fname)

Definition at line 1143 of file RE_Shader.h.

void RE_ShaderStage::setID ( int  id)

Definition at line 1164 of file RE_Shader.h.

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

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