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

#include <GteDirectionalLightTextureEffect.h>

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

Classes

struct  InternalGeometry
 
struct  InternalLighting
 
struct  InternalMaterial
 

Public Member Functions

 DirectionalLightTextureEffect (std::shared_ptr< ProgramFactory > const &factory, BufferUpdater const &updater, std::shared_ptr< Material > const &material, std::shared_ptr< Lighting > const &lighting, std::shared_ptr< LightCameraGeometry > const &geometry, std::shared_ptr< Texture2 > const &texture, SamplerState::Filter filter, SamplerState::Mode mode0, SamplerState::Mode mode1)
 
std::shared_ptr< SamplerState > const & GetSampler () const
 
std::shared_ptr< Texture2 > const & GetTexture () const
 
virtual void UpdateGeometryConstant ()
 
virtual void UpdateLightingConstant ()
 
virtual void UpdateMaterialConstant ()
 
- Public Member Functions inherited from gte::LightingEffect
std::shared_ptr< LightCameraGeometry > const & GetGeometry () const
 
std::shared_ptr< ConstantBuffer > const & GetGeometryConstant () const
 
std::shared_ptr< Lighting > const & GetLighting () const
 
std::shared_ptr< ConstantBuffer > const & GetLightingConstant () const
 
std::shared_ptr< Material > const & GetMaterial () const
 
std::shared_ptr< ConstantBuffer > const & GetMaterialConstant () const
 
std::shared_ptr< ConstantBuffer > const & GetPVWMatrixConstant () const
 
void SetGeometry (std::shared_ptr< LightCameraGeometry > const &geometry)
 
void SetLighting (std::shared_ptr< Lighting > const &lighting)
 
void SetMaterial (std::shared_ptr< Material > const &material)
 
void SetPVWMatrixConstant (std::shared_ptr< ConstantBuffer > const &pvwMatrix)
 
- 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

std::shared_ptr< SamplerStatemSampler
 
std::shared_ptr< Texture2mTexture
 

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::LightingEffect
 LightingEffect (std::shared_ptr< ProgramFactory > const &factory, BufferUpdater const &updater, std::string const *vsSource[], std::string const *psSource[], std::shared_ptr< Material > const &material, std::shared_ptr< Lighting > const &lighting, std::shared_ptr< LightCameraGeometry > const &geometry)
 
- Protected Member Functions inherited from gte::VisualEffect
 VisualEffect ()
 
- Static Protected Member Functions inherited from gte::LightingEffect
static std::string GetShaderSourceLitFunctionGLSL ()
 
- Protected Attributes inherited from gte::LightingEffect
std::shared_ptr< LightCameraGeometrymGeometry
 
std::shared_ptr< ConstantBuffermGeometryConstant
 
std::shared_ptr< LightingmLighting
 
std::shared_ptr< ConstantBuffermLightingConstant
 
std::shared_ptr< MaterialmMaterial
 
std::shared_ptr< ConstantBuffermMaterialConstant
 
std::shared_ptr< ConstantBuffermPVWMatrixConstant
 
- Protected Attributes inherited from gte::VisualEffect
BufferUpdater mBufferUpdater
 
std::shared_ptr< VisualProgrammProgram
 
TextureArrayUpdater mTextureArrayUpdater
 
TextureUpdater mTextureUpdater
 

Detailed Description

Definition at line 16 of file GteDirectionalLightTextureEffect.h.

Constructor & Destructor Documentation

DirectionalLightTextureEffect::DirectionalLightTextureEffect ( std::shared_ptr< ProgramFactory > const &  factory,
BufferUpdater const &  updater,
std::shared_ptr< Material > const &  material,
std::shared_ptr< Lighting > const &  lighting,
std::shared_ptr< LightCameraGeometry > const &  geometry,
std::shared_ptr< Texture2 > const &  texture,
SamplerState::Filter  filter,
SamplerState::Mode  mode0,
SamplerState::Mode  mode1 
)

Definition at line 12 of file GteDirectionalLightTextureEffect.cpp.

Member Function Documentation

std::shared_ptr< SamplerState > const & gte::DirectionalLightTextureEffect::GetSampler ( ) const
inline

Definition at line 75 of file GteDirectionalLightTextureEffect.h.

std::shared_ptr< Texture2 > const & gte::DirectionalLightTextureEffect::GetTexture ( ) const
inline

Definition at line 70 of file GteDirectionalLightTextureEffect.h.

void DirectionalLightTextureEffect::UpdateGeometryConstant ( )
virtual

Reimplemented from gte::LightingEffect.

Definition at line 66 of file GteDirectionalLightTextureEffect.cpp.

void DirectionalLightTextureEffect::UpdateLightingConstant ( )
virtual

Reimplemented from gte::LightingEffect.

Definition at line 56 of file GteDirectionalLightTextureEffect.cpp.

void DirectionalLightTextureEffect::UpdateMaterialConstant ( )
virtual

Reimplemented from gte::LightingEffect.

Definition at line 46 of file GteDirectionalLightTextureEffect.cpp.

Member Data Documentation

std::shared_ptr<SamplerState> gte::DirectionalLightTextureEffect::mSampler
private

Definition at line 60 of file GteDirectionalLightTextureEffect.h.

std::string const DirectionalLightTextureEffect::msGLSLPSSource
staticprivate

Definition at line 64 of file GteDirectionalLightTextureEffect.h.

std::string const DirectionalLightTextureEffect::msGLSLVSSource
staticprivate
Initial value:
=
"uniform PVWMatrix\n"
"{\n"
" mat4 pvwMatrix;\n"
"};\n"
"\n"
"layout(location = 0) in vec3 modelPosition;\n"
"layout(location = 1) in vec3 modelNormal;\n"
"layout(location = 2) in vec2 modelTCoord;\n"
"\n"
"layout(location = 0) out vec3 vertexPosition;\n"
"layout(location = 1) out vec3 vertexNormal;\n"
"layout(location = 2) out vec2 vertexTCoord;\n"
"\n"
"void main()\n"
"{\n"
" vertexPosition = modelPosition;\n"
" vertexNormal = modelNormal;\n"
" vertexTCoord = modelTCoord;\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 63 of file GteDirectionalLightTextureEffect.h.

std::string const DirectionalLightTextureEffect::msHLSLSource
staticprivate

Definition at line 65 of file GteDirectionalLightTextureEffect.h.

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

Definition at line 67 of file GteDirectionalLightTextureEffect.h.

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

Definition at line 66 of file GteDirectionalLightTextureEffect.h.

std::shared_ptr<Texture2> gte::DirectionalLightTextureEffect::mTexture
private

Definition at line 59 of file GteDirectionalLightTextureEffect.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:05