|
CSEngine
|
Classes | |
| struct | Element |
Public Types | |
| typedef std::map< std::string, GLProgramHandle::Element * > | GLElementList |
Public Member Functions | |
| RESOURCE_DEFINE_CONSTRUCTOR (GLProgramHandle) | |
| 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) |
| void | SetValue (std::string name_str, Arguments value) override |
| std::string | PrintValue () const override |
Public Member Functions inherited from CSE::SResource | |
| SResource (std::string classType) | |
| 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 () |
| std::string | GetHash () const |
Public Member Functions inherited from CSE::VariableBinder | |
Public Member Functions inherited from CSE::ReflectionObject | |
| ReflectionObject (std::string type) | |
| void | SetClassType (std::string type) |
| const char * | GetClassType () const |
| bool | IsSameClass (const char *classType) const |
Public Attributes | |
| GLuint | Program |
| GLAttributeHandles | Attributes |
| GLUniformHandles | Uniforms |
| GLElementList | AttributesList |
| GLElementList | UniformsList |
| GLuint | CullFace = GL_BACK |
Protected Member Functions | |
| void | Init (const AssetMgr::AssetReference *asset) override |
Protected Member Functions inherited from CSE::SResource | |
Protected Member Functions inherited from CSE::VariableBinder | |
Additional Inherited Members | |
Static Public Member Functions inherited from CSE::SResource | |
| template<class T > | |
| static T * | Create (const std::string &name) |
| static SResource * | Create (const std::string &name, const std::string &classType) |
| template<class T > | |
| static T * | Create (const AssetMgr::AssetReference *asset) |
| static SResource * | Create (const AssetMgr::AssetReference *asset, const std::string &classType) |
| template<class T > | |
| static T * | Get (std::string name) |
| static SResource * | Get (std::string &name) |
Static Public Member Functions inherited from CSE::ReflectionObject | |
| static ReflectionObject * | NewObject (const std::string &name) |
Protected Types inherited from CSE::VariableBinder | |
| typedef std::vector< std::string > | Arguments |
Protected Attributes inherited from CSE::SObject | |
| std::string | m_hash |
Protected Attributes inherited from CSE::ReflectionObject | |
| std::string | m_class |
Definition at line 57 of file GLProgramHandle.h.
| std::map<std::string, GLProgramHandle::Element*> CSE::GLProgramHandle::GLElementList |
Definition at line 64 of file GLProgramHandle.h.
|
inline |
Definition at line 76 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.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 215 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 72 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.
|
overridevirtual |
Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.
| name_str | Name of values |
| value | Serialized values |
Implements CSE::VariableBinder.
Definition at line 212 of file GLProgramHandle.cpp.
|
inline |
Definition at line 81 of file GLProgramHandle.h.
| GLAttributeHandles CSE::GLProgramHandle::Attributes |
Definition at line 120 of file GLProgramHandle.h.
| GLElementList CSE::GLProgramHandle::AttributesList |
Definition at line 123 of file GLProgramHandle.h.
| GLuint CSE::GLProgramHandle::CullFace = GL_BACK |
Definition at line 126 of file GLProgramHandle.h.
| GLuint CSE::GLProgramHandle::Program |
Definition at line 119 of file GLProgramHandle.h.
| GLUniformHandles CSE::GLProgramHandle::Uniforms |
Definition at line 121 of file GLProgramHandle.h.
| GLElementList CSE::GLProgramHandle::UniformsList |
Definition at line 124 of file GLProgramHandle.h.