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

An effect for rendering 2D flat colored quads.

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

Classes

struct  StippleKey
 

Public Member Functions

 DtProjected2DFlatEffect (const std::string &dataPath, const std::string &defines)
 
virtual ~DtProjected2DFlatEffect ()
 
virtual void releaseResources () override
 
virtual void setCamera (bool geocentric, float occluded, const double position[3], const double positionMatrix[16], const double projectionMatrix[16], const int viewport[4]) override
 
virtual void setGroupCount (unsigned int count) override
 
virtual void setStipple (bool enable, const unsigned int *stipplePattern, float tileRate)
 
virtual void setVertexAttribPointers (size_t stride, const VertexAttribPtrInfo &positionAddress, const VertexAttribPtrInfo &colorAddress, const VertexAttribPtrInfo &offsetAddress, const VertexAttribPtrInfo &rotationAddress)
 
virtual void unsetVertexAttribPointers ()
 
virtual void setIsNormalisedScreenCoordinates (bool isNormalisedScreenCoords)
 
- 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 reloadShaders ()
 
bool enabled () const
 
bool enable ()
 
void disable ()
 

Protected Types

typedef std::map< StippleKey, int > StippleTextureMap
 

Protected Member Functions

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

Protected Attributes

int myUniform_CameraPos
 
int myUniform_CameraMat
 
int myUniform_ProjectionMat
 
int myUniform_GroupCount
 
int myUniform_Sphere
 
int myUniform_OccludedAlpha
 
int myUniform_Stipple
 
int myUniform_Tex
 
int myUniform_NormalisedScreenSpace
 
unsigned int myUnit
 
unsigned int myGroupCount
 
double myCameraPos [3]
 
double myMatrix [16]
 
double myProjectionMatrix [16]
 
double myChannelWidthHeight [2]
 
bool myIsNormalisedScreenCoords
 
bool myGeocentricFlag
 
float myGeocentricAlpha
 
StippleTextureMap myStippleTextureMap
 
- 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)
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtProjected2DFlatEffect::DtProjected2DFlatEffect ( const std::string &  dataPath,
const std::string &  defines 
)

CTOR.

virtual makVrv::DtProjected2DFlatEffect::~DtProjected2DFlatEffect ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtProjected2DFlatEffect::releaseResources ( )
overridevirtual

Release and HW resources of the effect.

Reimplemented from makVrv::DtEffect.

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

Set the camera position.

Parameters
geocentricTrue if using geocentric (earth-centered) coordinates.
occludedThe occluded fraction for geocentric alpha blending.
positionThe camera position in world space.
positionMatrixThe camera position matrix.
projectionMatrixThe camera projection matrix.
viewportThe viewport position and dimensions (x, y, width, height).

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DFlatEffect::setGroupCount ( unsigned int  count)
overridevirtual

Set the number of groups.

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DFlatEffect::setStipple ( bool  enable,
const unsigned int *  stipplePattern,
float  tileRate 
)
virtual
virtual void makVrv::DtProjected2DFlatEffect::setVertexAttribPointers ( size_t  stride,
const VertexAttribPtrInfo &  positionAddress,
const VertexAttribPtrInfo &  colorAddress,
const VertexAttribPtrInfo &  offsetAddress,
const VertexAttribPtrInfo &  rotationAddress 
)
virtual
virtual void makVrv::DtProjected2DFlatEffect::unsetVertexAttribPointers ( )
virtual

Unsets the attributes set in setVertexAttribPointers(..).

virtual void makVrv::DtProjected2DFlatEffect::setIsNormalisedScreenCoordinates ( bool  isNormalisedScreenCoords)
virtual

Set whether the graphic is normalised screen coordinates Used by window object API, passed to shader.

virtual void makVrv::DtProjected2DFlatEffect::updateUniformLocations ( )
overrideprotectedvirtual

Updates the values of the uniform variables from the program.

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DFlatEffect::updateUniforms ( )
overrideprotectedvirtual

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

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DFlatEffect::initializeShaderSource ( )
overrideprotectedvirtual

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

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DFlatEffect::updateOtherUniforms ( )
protectedvirtual

Member Data Documentation

int makVrv::DtProjected2DFlatEffect::myUniform_CameraPos
protected
int makVrv::DtProjected2DFlatEffect::myUniform_CameraMat
protected
int makVrv::DtProjected2DFlatEffect::myUniform_ProjectionMat
protected
int makVrv::DtProjected2DFlatEffect::myUniform_GroupCount
protected
int makVrv::DtProjected2DFlatEffect::myUniform_Sphere
protected
int makVrv::DtProjected2DFlatEffect::myUniform_OccludedAlpha
protected
int makVrv::DtProjected2DFlatEffect::myUniform_Stipple
protected
int makVrv::DtProjected2DFlatEffect::myUniform_Tex
protected
int makVrv::DtProjected2DFlatEffect::myUniform_NormalisedScreenSpace
protected
unsigned int makVrv::DtProjected2DFlatEffect::myUnit
protected
unsigned int makVrv::DtProjected2DFlatEffect::myGroupCount
protected
double makVrv::DtProjected2DFlatEffect::myCameraPos[3]
protected
double makVrv::DtProjected2DFlatEffect::myMatrix[16]
protected
double makVrv::DtProjected2DFlatEffect::myProjectionMatrix[16]
protected
double makVrv::DtProjected2DFlatEffect::myChannelWidthHeight[2]
protected
bool makVrv::DtProjected2DFlatEffect::myIsNormalisedScreenCoords
protected
bool makVrv::DtProjected2DFlatEffect::myGeocentricFlag
protected
float makVrv::DtProjected2DFlatEffect::myGeocentricAlpha
protected
StippleTextureMap makVrv::DtProjected2DFlatEffect::myStippleTextureMap
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)