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

#include <GteTexture3Effect.h>

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

Public Member Functions

Matrix4x4< float > const & GetPVWMatrix () const
 
std::shared_ptr< ConstantBuffer > const & GetPVWMatrixConstant () const
 
std::shared_ptr< SamplerState > const & GetSampler () const
 
std::shared_ptr< Texture3 > const & GetTexture () const
 
void SetPVWMatrix (Matrix4x4< float > const &pvwMatrix)
 
void SetPVWMatrixConstant (std::shared_ptr< ConstantBuffer > const &pvwMatrix)
 
 Texture3Effect (std::shared_ptr< ProgramFactory > const &factory, std::shared_ptr< Texture3 > const &texture, SamplerState::Filter filter, SamplerState::Mode mode0, SamplerState::Mode mode1, SamplerState::Mode mode2)
 
- 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
 
std::shared_ptr< SamplerStatemSampler
 
std::shared_ptr< Texture3mTexture
 

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 17 of file GteTexture3Effect.h.

Constructor & Destructor Documentation

Texture3Effect::Texture3Effect ( std::shared_ptr< ProgramFactory > const &  factory,
std::shared_ptr< Texture3 > const &  texture,
SamplerState::Filter  filter,
SamplerState::Mode  mode0,
SamplerState::Mode  mode1,
SamplerState::Mode  mode2 
)

Definition at line 12 of file GteTexture3Effect.cpp.

Member Function Documentation

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

Definition at line 62 of file GteTexture3Effect.h.

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

Definition at line 68 of file GteTexture3Effect.h.

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

Definition at line 78 of file GteTexture3Effect.h.

std::shared_ptr< Texture3 > const & gte::Texture3Effect::GetTexture ( ) const
inline

Definition at line 73 of file GteTexture3Effect.h.

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

Definition at line 57 of file GteTexture3Effect.h.

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

Definition at line 44 of file GteTexture3Effect.cpp.

Member Data Documentation

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

Definition at line 46 of file GteTexture3Effect.h.

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

Definition at line 39 of file GteTexture3Effect.h.

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

Definition at line 43 of file GteTexture3Effect.h.

std::string const Texture3Effect::msGLSLPSSource
staticprivate
Initial value:
=
"uniform sampler3D baseSampler;\n"
"\n"
"layout(location = 0) in vec3 vertexTCoord;\n"
"layout(location = 0) out vec4 pixelColor;\n"
"\n"
"void main()\n"
"{\n"
" pixelColor = texture(baseSampler, vertexTCoord);\n"
"}\n"

Definition at line 50 of file GteTexture3Effect.h.

std::string const Texture3Effect::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 modelTCoord;\n"
"layout(location = 0) out vec3 vertexTCoord;\n"
"\n"
"void main()\n"
"{\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 49 of file GteTexture3Effect.h.

std::string const Texture3Effect::msHLSLSource
staticprivate

Definition at line 51 of file GteTexture3Effect.h.

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

Definition at line 53 of file GteTexture3Effect.h.

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

Definition at line 52 of file GteTexture3Effect.h.

std::shared_ptr<Texture3> gte::Texture3Effect::mTexture
private

Definition at line 42 of file GteTexture3Effect.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