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

#include <GteVertexColorEffect.h>

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

Public Member Functions

Matrix4x4< float > const & GetPVWMatrix () const
 
std::shared_ptr< ConstantBuffer > const & GetPVWMatrixConstant () const
 
void SetPVWMatrix (Matrix4x4< float > const &pvwMatrix)
 
void SetPVWMatrixConstant (std::shared_ptr< ConstantBuffer > const &pvwMatrix)
 
 VertexColorEffect (std::shared_ptr< ProgramFactory > const &factory)
 
- Public Member Functions inherited from gte::VisualEffect
std::shared_ptr< GeometryShader > const & GetGeometryShader () const
 
std::shared_ptr< PixelShader > const & GetPixelShader () const
 
std::shared_ptr< VisualProgram > const & GetProgram () const
 
std::shared_ptr< VertexShader > const & GetVertexShader () const
 
 VisualEffect (std::shared_ptr< VisualProgram > const &program)
 
virtual ~VisualEffect ()
 

Private Attributes

Matrix4x4< float > * mPVWMatrix
 
std::shared_ptr< ConstantBuffermPVWMatrixConstant
 

Static Private Attributes

static std::string const msGLSLPSSource
 
static std::string const msGLSLVSSource
 
static std::string const msHLSLSource
 
static std::string const * msPSSource [ProgramFactory::PF_NUM_API]
 
static std::string const * msVSSource [ProgramFactory::PF_NUM_API]
 

Additional Inherited Members

- Protected Member Functions inherited from gte::VisualEffect
 VisualEffect ()
 
- Protected Attributes inherited from gte::VisualEffect
BufferUpdater mBufferUpdater
 
std::shared_ptr< VisualProgrammProgram
 
TextureArrayUpdater mTextureArrayUpdater
 
TextureUpdater mTextureUpdater
 

Detailed Description

Definition at line 16 of file GteVertexColorEffect.h.

Constructor & Destructor Documentation

VertexColorEffect::VertexColorEffect ( std::shared_ptr< ProgramFactory > const &  factory)

Definition at line 12 of file GteVertexColorEffect.cpp.

Member Function Documentation

Matrix4x4< float > const & gte::VertexColorEffect::GetPVWMatrix ( ) const
inline

Definition at line 52 of file GteVertexColorEffect.h.

std::shared_ptr< ConstantBuffer > const & gte::VertexColorEffect::GetPVWMatrixConstant ( ) const
inline

Definition at line 58 of file GteVertexColorEffect.h.

void gte::VertexColorEffect::SetPVWMatrix ( Matrix4x4< float > const &  pvwMatrix)
inline

Definition at line 47 of file GteVertexColorEffect.h.

void VertexColorEffect::SetPVWMatrixConstant ( std::shared_ptr< ConstantBuffer > const &  pvwMatrix)

Definition at line 28 of file GteVertexColorEffect.cpp.

Member Data Documentation

Matrix4x4<float>* gte::VertexColorEffect::mPVWMatrix
private

Definition at line 36 of file GteVertexColorEffect.h.

std::shared_ptr<ConstantBuffer> gte::VertexColorEffect::mPVWMatrixConstant
private

Definition at line 33 of file GteVertexColorEffect.h.

std::string const VertexColorEffect::msGLSLPSSource
staticprivate
Initial value:
=
"layout(location = 0) in vec4 vertexColor;\n"
"layout(location = 0) out vec4 pixelColor;\n"
"\n"
"void main()\n"
"{\n"
" pixelColor = vertexColor;\n"
"}\n"

Definition at line 40 of file GteVertexColorEffect.h.

std::string const VertexColorEffect::msGLSLVSSource
staticprivate
Initial value:
=
"uniform PVWMatrix\n"
"{\n"
" mat4 pvwMatrix;\n"
"};\n"
"\n"
"layout(location = 0) in vec3 modelPosition;\n"
"layout(location = 1) in vec4 modelColor;\n"
"layout(location = 0) out vec4 vertexColor;\n"
"\n"
"void main()\n"
"{\n"
" vertexColor = modelColor;\n"
"#if GTE_USE_MAT_VEC\n"
" gl_Position = pvwMatrix * vec4(modelPosition, 1.0f);\n"
"#else\n"
" gl_Position = vec4(modelPosition, 1.0f) * pvwMatrix;\n"
"#endif\n"
"}\n"

Definition at line 39 of file GteVertexColorEffect.h.

std::string const VertexColorEffect::msHLSLSource
staticprivate

Definition at line 41 of file GteVertexColorEffect.h.

std::string const * VertexColorEffect::msPSSource
staticprivate
Initial value:

Definition at line 43 of file GteVertexColorEffect.h.

std::string const * VertexColorEffect::msVSSource
staticprivate
Initial value:

Definition at line 42 of file GteVertexColorEffect.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:07