CSEngine
|
Classes | |
struct | Element |
Public Types | |
typedef std::map< std::string, GLProgramHandle::Element * > | GLElementList |
Public Member Functions | |
void | Exterminate () override |
void | SetProgram (GLuint program) |
Element * | AttributeLocation (const char *location) const |
Element * | UniformLocation (const char *location) const |
void | SetAttribVec3 (const std::string &location, vec3 &value) |
void | SetAttribVec4 (const std::string &location, vec4 &value) |
void | SetUniformInt (const std::string &location, int value) |
void | SetUniformFloat (const std::string &location, float value) |
void | SetUniformMat4 (const std::string &location, mat4 &value) |
void | SetUniformMat3 (const std::string &location, mat3 &value) |
void | SetAttributesList (std::map< std::string, std::string > &vert, std::map< std::string, std::string > &frag) |
void | SetUniformsList (std::map< std::string, std::string > &vert, std::map< std::string, std::string > &frag) |
GLElementList | GetAttributesList () const |
GLElementList | GetUniformsList () const |
void | SaveShader (const std::string &path) |
Public Member Functions inherited from CSE::SResource | |
SResource (bool isRegister) | |
SResource (const SResource *resource, bool isRegister) | |
void | SetName (std::string name) |
void | SetAbsoluteID (std::string id) |
std::string | GetName () const |
std::string | GetAbsoluteID () const |
AssetMgr::AssetReference * | GetAssetReference (std::string hash="") const |
void | LinkResource (AssetMgr::AssetReference *asset) |
void | LinkResource (std::string name) |
void | SetHash (std::string &hash) override |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | Destroy () |
virtual void | __FORCE_DESTROY__ () |
virtual std::string | GenerateMeta () |
std::string | GetHash () const |
Public Attributes | |
GLuint | Program |
GLAttributeHandles | Attributes |
GLUniformHandles | Uniforms |
GLElementList | AttributesList |
GLElementList | UniformsList |
Protected Member Functions | |
void | Init (const AssetMgr::AssetReference *asset) override |
Additional Inherited Members | |
Static Public Member Functions inherited from CSE::SResource | |
template<class T > | |
static T * | Create (const std::string &name) |
template<class T > | |
static T * | Create (const AssetMgr::AssetReference *asset) |
template<class T > | |
static T * | Get (std::string name) |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 50 of file GLProgramHandle.h.
typedef std::map<std::string, GLProgramHandle::Element*> CSE::GLProgramHandle::GLElementList |
Definition at line 57 of file GLProgramHandle.h.
GLProgramHandle::GLProgramHandle | ( | ) |
Definition at line 12 of file GLProgramHandle.cpp.
|
inline |
Definition at line 69 of file GLProgramHandle.h.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 18 of file GLProgramHandle.cpp.
GLProgramHandle::GLElementList GLProgramHandle::GetAttributesList | ( | ) | const |
Definition at line 163 of file GLProgramHandle.cpp.
GLProgramHandle::GLElementList GLProgramHandle::GetUniformsList | ( | ) | const |
Definition at line 167 of file GLProgramHandle.cpp.
|
overrideprotectedvirtual |
Implements CSE::SResource.
Definition at line 187 of file GLProgramHandle.cpp.
void GLProgramHandle::SaveShader | ( | const std::string & | path | ) |
Definition at line 172 of file GLProgramHandle.cpp.
void GLProgramHandle::SetAttributesList | ( | std::map< std::string, std::string > & | vert, |
std::map< std::string, std::string > & | frag | ||
) |
Definition at line 92 of file GLProgramHandle.cpp.
void GLProgramHandle::SetAttribVec3 | ( | const std::string & | location, |
vec3 & | value | ||
) |
Definition at line 32 of file GLProgramHandle.cpp.
void GLProgramHandle::SetAttribVec4 | ( | const std::string & | location, |
vec4 & | value | ||
) |
Definition at line 42 of file GLProgramHandle.cpp.
|
inline |
Definition at line 65 of file GLProgramHandle.h.
void GLProgramHandle::SetUniformFloat | ( | const std::string & | location, |
float | value | ||
) |
Definition at line 62 of file GLProgramHandle.cpp.
void GLProgramHandle::SetUniformInt | ( | const std::string & | location, |
int | value | ||
) |
Definition at line 52 of file GLProgramHandle.cpp.
void GLProgramHandle::SetUniformMat3 | ( | const std::string & | location, |
mat3 & | value | ||
) |
Definition at line 82 of file GLProgramHandle.cpp.
void GLProgramHandle::SetUniformMat4 | ( | const std::string & | location, |
mat4 & | value | ||
) |
Definition at line 72 of file GLProgramHandle.cpp.
void GLProgramHandle::SetUniformsList | ( | std::map< std::string, std::string > & | vert, |
std::map< std::string, std::string > & | frag | ||
) |
Definition at line 128 of file GLProgramHandle.cpp.
|
inline |
Definition at line 74 of file GLProgramHandle.h.
GLAttributeHandles CSE::GLProgramHandle::Attributes |
Definition at line 109 of file GLProgramHandle.h.
GLElementList CSE::GLProgramHandle::AttributesList |
Definition at line 112 of file GLProgramHandle.h.
GLuint CSE::GLProgramHandle::Program |
Definition at line 108 of file GLProgramHandle.h.
GLUniformHandles CSE::GLProgramHandle::Uniforms |
Definition at line 110 of file GLProgramHandle.h.
GLElementList CSE::GLProgramHandle::UniformsList |
Definition at line 113 of file GLProgramHandle.h.