Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
gte::GLSLProgramFactory Class Reference

#include <GteGLSLProgramFactory.h>

Inheritance diagram for gte::GLSLProgramFactory:
Inheritance graph
[legend]

Public Member Functions

virtual int GetAPI () const override
 
 GLSLProgramFactory ()
 
- Public Member Functions inherited from gte::ProgramFactory
std::shared_ptr< ComputeProgramCreateFromFile (std::string const &csFile)
 
std::shared_ptr< VisualProgramCreateFromFiles (std::string const &vsFile, std::string const &psFile, std::string const &gsFile)
 
std::shared_ptr< ComputeProgramCreateFromSource (std::string const &csSource)
 
std::shared_ptr< VisualProgramCreateFromSources (std::string const &vsSource, std::string const &psSource, std::string const &gsSource)
 
void PopDefines ()
 
void PopFlags ()
 
 ProgramFactory ()
 
void PushDefines ()
 
void PushFlags ()
 
virtual ~ProgramFactory ()
 

Static Public Attributes

static std::string defaultCSEntry = "main"
 
static unsigned int defaultFlags = 0
 
static std::string defaultGSEntry = "main"
 
static std::string defaultPSEntry = "main"
 
static std::string defaultVersion = "#version 430"
 
static std::string defaultVSEntry = "main"
 

Private Member Functions

GLuint Compile (GLenum shaderType, std::string const &source)
 
virtual std::shared_ptr< ComputeProgramCreateFromNamedSource (std::string const &csName, std::string const &csSource) override
 
virtual std::shared_ptr< VisualProgramCreateFromNamedSources (std::string const &vsName, std::string const &vsSource, std::string const &psName, std::string const &psSource, std::string const &gsName, std::string const &gsSource) override
 
bool Link (GLuint programHandle)
 

Additional Inherited Members

- Public Types inherited from gte::ProgramFactory
enum  { PF_GLSL, PF_HLSL, PF_NUM_API }
 
- Static Public Member Functions inherited from gte::ProgramFactory
static std::string GetStringFromFile (std::string const &filename)
 
- Public Attributes inherited from gte::ProgramFactory
std::string csEntry
 
ProgramDefines defines
 
unsigned int flags
 
std::string gsEntry
 
std::string psEntry
 
std::string version
 
std::string vsEntry
 

Detailed Description

Definition at line 16 of file GteGLSLProgramFactory.h.

Constructor & Destructor Documentation

GLSLProgramFactory::GLSLProgramFactory ( )

Definition at line 22 of file GteGLSLProgramFactory.cpp.

Member Function Documentation

GLuint GLSLProgramFactory::Compile ( GLenum  shaderType,
std::string const &  source 
)
private

Definition at line 148 of file GteGLSLProgramFactory.cpp.

std::shared_ptr< ComputeProgram > GLSLProgramFactory::CreateFromNamedSource ( std::string const &  csName,
std::string const &  csSource 
)
overrideprivatevirtual

Implements gte::ProgramFactory.

Definition at line 108 of file GteGLSLProgramFactory.cpp.

std::shared_ptr< VisualProgram > GLSLProgramFactory::CreateFromNamedSources ( std::string const &  vsName,
std::string const &  vsSource,
std::string const &  psName,
std::string const &  psSource,
std::string const &  gsName,
std::string const &  gsSource 
)
overrideprivatevirtual

Implements gte::ProgramFactory.

Definition at line 32 of file GteGLSLProgramFactory.cpp.

int gte::GLSLProgramFactory::GetAPI ( ) const
inlineoverridevirtual

Implements gte::ProgramFactory.

Definition at line 66 of file GteGLSLProgramFactory.h.

bool GLSLProgramFactory::Link ( GLuint  programHandle)
private

Definition at line 226 of file GteGLSLProgramFactory.cpp.

Member Data Documentation

std::string GLSLProgramFactory::defaultCSEntry = "main"
static

Definition at line 26 of file GteGLSLProgramFactory.h.

unsigned int GLSLProgramFactory::defaultFlags = 0
static

Definition at line 27 of file GteGLSLProgramFactory.h.

std::string GLSLProgramFactory::defaultGSEntry = "main"
static

Definition at line 25 of file GteGLSLProgramFactory.h.

std::string GLSLProgramFactory::defaultPSEntry = "main"
static

Definition at line 24 of file GteGLSLProgramFactory.h.

std::string GLSLProgramFactory::defaultVersion = "#version 430"
static

Definition at line 22 of file GteGLSLProgramFactory.h.

std::string GLSLProgramFactory::defaultVSEntry = "main"
static

Definition at line 23 of file GteGLSLProgramFactory.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06