VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtProjected2DTexturedEffect Class Reference

A extended precision 2D quad rendering effect.

Inheritance diagram for makVrv::DtProjected2DTexturedEffect:
Inheritance graph
[legend]

Public Member Functions

 DtProjected2DTexturedEffect (const std::string &dataPath, const std::string &defines, bool textureIsAlpha)
 
virtual ~DtProjected2DTexturedEffect ()
 
virtual void setCamera (bool geocentric, float geocentricAlpha, const double position[3], const double positionMatrix[16], const double projectionMatrix[16], const int viewport[4]) override
 
virtual void setGroupCount (unsigned int count)
 
virtual void setBackgroundImageTextureUnit (unsigned int unit)
 
- Public Member Functions inherited from makVrv::Dt2DEffect
 Dt2DEffect (const std::string &dataPath, const std::string &strDefines)
 
virtual ~Dt2DEffect ()
 
- Public Member Functions inherited from makVrv::DtEffect
 DtEffect (const std::string &dataPath, const std::string &strDefines)
 
virtual ~DtEffect ()
 
virtual void releaseResources ()
 
virtual void reloadShaders ()
 
bool enabled () const
 
bool enable ()
 
void disable ()
 

Protected Member Functions

virtual void updateUniformLocations ()
 
virtual void updateUniforms ()
 
virtual void initializeShaderSource ()
 
void updateGroupCountAndTextureUniforms ()
 
void updateOtherUniforms ()
 
- Protected Member Functions inherited from makVrv::DtEffect
bool compileShaders ()
 

Protected Attributes

int myUniform_Texture
 
int myUniform_CameraPos
 
int myUniform_PositionMat
 
int myUniform_ProjectionMat
 
int myUniform_GroupCount
 
int myUniform_Sphere
 
int myUniform_OccludedAlpha
 
int myUniform_ViewportSize
 
unsigned int myUnit
 
unsigned int myGroupCount
 
double myCameraPos [3]
 
double myPositionMatrix [16]
 
double myProjectionMatrix [16]
 
float myViewport [4]
 
bool myTextureIsAlpha
 
bool myGeocentricFlag
 
float myGeocentricAlpha
 
- Protected Attributes inherited from makVrv::DtEffect
std::string myName
 
bool myEnabledFlag
 
unsigned int myProgram
 
unsigned int myVertexShader
 
unsigned int myFragmentShader
 
std::string myVertexShaderSource
 
std::string myVertexShaderName
 
std::string myFragmentShaderSource
 
std::string myFragmentShaderName
 
std::string myGeometryShaderSource
 
std::string myDataPath
 
const std::string myDefines
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtEffect
static std::string loadShaderSource (const std::string &strFileFolder, const std::string &strFileName, const std::string &strDefines)
 
- Static Protected Member Functions inherited from makVrv::DtEffect
static std::string preprocessShaderIncludes (const std::string &source, const boost::filesystem::path &filename, int level, const std::string &shaderFolderPath)
 
static std::string loadShaderFile (const std::string &strFileName)
 

Constructor & Destructor Documentation

makVrv::DtProjected2DTexturedEffect::DtProjected2DTexturedEffect ( const std::string &  dataPath,
const std::string &  defines,
bool  textureIsAlpha 
)

CTOR.

virtual makVrv::DtProjected2DTexturedEffect::~DtProjected2DTexturedEffect ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtProjected2DTexturedEffect::setCamera ( bool  geocentric,
float  geocentricAlpha,
const double  position[3],
const double  positionMatrix[16],
const double  projectionMatrix[16],
const int  viewport[4] 
)
overridevirtual

Set the camera position.

Parameters
viewport[4]- the viewport position and dimensions (x, y, width, height)

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DTexturedEffect::setGroupCount ( unsigned int  count)
virtual

Set the number of groups.

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DTexturedEffect::setBackgroundImageTextureUnit ( unsigned int  unit)
virtual

Set the background image texture unit.

virtual void makVrv::DtProjected2DTexturedEffect::updateUniformLocations ( )
protectedvirtual

Updates the values of the uniform variables from the program.

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DTexturedEffect::updateUniforms ( )
protectedvirtual

Updates the values of the uniform variables from the current state.

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DTexturedEffect::initializeShaderSource ( )
protectedvirtual

Populates the vertex shader, fragment shader, and gshader sources.

Implements makVrv::DtEffect.

void makVrv::DtProjected2DTexturedEffect::updateGroupCountAndTextureUniforms ( )
protected
void makVrv::DtProjected2DTexturedEffect::updateOtherUniforms ( )
protected

Member Data Documentation

int makVrv::DtProjected2DTexturedEffect::myUniform_Texture
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_CameraPos
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_PositionMat
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_ProjectionMat
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_GroupCount
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_Sphere
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_OccludedAlpha
protected
int makVrv::DtProjected2DTexturedEffect::myUniform_ViewportSize
protected
unsigned int makVrv::DtProjected2DTexturedEffect::myUnit
protected
unsigned int makVrv::DtProjected2DTexturedEffect::myGroupCount
protected
double makVrv::DtProjected2DTexturedEffect::myCameraPos[3]
protected
double makVrv::DtProjected2DTexturedEffect::myPositionMatrix[16]
protected
double makVrv::DtProjected2DTexturedEffect::myProjectionMatrix[16]
protected
float makVrv::DtProjected2DTexturedEffect::myViewport[4]
protected
bool makVrv::DtProjected2DTexturedEffect::myTextureIsAlpha
protected
bool makVrv::DtProjected2DTexturedEffect::myGeocentricFlag
protected
float makVrv::DtProjected2DTexturedEffect::myGeocentricAlpha
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)