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

#include <GteTexture2Effect.h>

Inheritance diagram for gte::Texture2Effect:
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< Texture2 > const & GetTexture () const
 
void SetPVWMatrix (Matrix4x4< float > const &pvwMatrix)
 
void SetPVWMatrixConstant (std::shared_ptr< ConstantBuffer > const &pvwMatrix)
 
 Texture2Effect (std::shared_ptr< ProgramFactory > const &factory, std::shared_ptr< Texture2 > const &texture, SamplerState::Filter filter, SamplerState::Mode mode0, SamplerState::Mode mode1)
 
- 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< 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::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 GteTexture2Effect.h.

Constructor & Destructor Documentation

Texture2Effect::Texture2Effect ( std::shared_ptr< ProgramFactory > const &  factory,
std::shared_ptr< Texture2 > const &  texture,
SamplerState::Filter  filter,
SamplerState::Mode  mode0,
SamplerState::Mode  mode1 
)

Definition at line 12 of file GteTexture2Effect.cpp.

Member Function Documentation

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

Definition at line 61 of file GteTexture2Effect.h.

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

Definition at line 67 of file GteTexture2Effect.h.

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

Definition at line 77 of file GteTexture2Effect.h.

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

Definition at line 72 of file GteTexture2Effect.h.

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

Definition at line 56 of file GteTexture2Effect.h.

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

Definition at line 42 of file GteTexture2Effect.cpp.

Member Data Documentation

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

Definition at line 45 of file GteTexture2Effect.h.

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

Definition at line 38 of file GteTexture2Effect.h.

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

Definition at line 42 of file GteTexture2Effect.h.

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

Definition at line 49 of file GteTexture2Effect.h.

std::string const Texture2Effect::msGLSLVSSource
staticprivate
Initial value:
=
"uniform PVWMatrix\n"
"{\n"
" mat4 pvwMatrix;\n"
"};\n"
"\n"
"layout(location = 0) in vec3 modelPosition;\n"
"layout(location = 1) in vec2 modelTCoord;\n"
"layout(location = 0) out vec2 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 48 of file GteTexture2Effect.h.

std::string const Texture2Effect::msHLSLSource
staticprivate

Definition at line 50 of file GteTexture2Effect.h.

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

Definition at line 52 of file GteTexture2Effect.h.

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

Definition at line 51 of file GteTexture2Effect.h.

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

Definition at line 41 of file GteTexture2Effect.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