Blobalizer
Loading...
Searching...
No Matches
ChemStructureShader Class Reference

A class representing the shader responsible for the rasterization of the internal structure of the molecule. More...

#include <ChemStructureShader.h>

Inheritance diagram for ChemStructureShader:

Public Types

enum  : UnsignedInt { ColorOutput = 0 , PosOutput = 1 , MaskOutput = 2 }
 

Public Member Functions

 ChemStructureShader ()
 Loads the shader files from disk, then compiles and links them.
 
void setModelMatrix (const Matrix4 &matrix)
 Update the model matrix uniform of this shader.
 
void setModelViewMatrix (const Matrix4 &matrix)
 Update the model view matrix uniform of this shader.
 
void setProjectionMatrix (const Matrix4 &matrix)
 Update the projection matrix uniform of this shader.
 
void setViewMatrix (const Matrix4 &matrix)
 Update the view matrix uniform of this shader.
 

Private Types

enum  : Int { TextureUnit = 0 }
 Update the camera position uniform of this shader. More...
 

Private Attributes

Int modelMatrixUniform
 
Int modelViewMatrixUniform
 
Int viewMatrixUniform
 
Int projectionMatrixUniform
 

Detailed Description

A class representing the shader responsible for the rasterization of the internal structure of the molecule.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : UnsignedInt
Enumerator
ColorOutput 
PosOutput 
MaskOutput 

◆ anonymous enum

anonymous enum : Int
private

Update the camera position uniform of this shader.

Parameters
matrixthe new vcamera position
Enumerator
TextureUnit 

Constructor & Destructor Documentation

◆ ChemStructureShader()

ChemStructureShader::ChemStructureShader ( )
inline

Loads the shader files from disk, then compiles and links them.

Member Function Documentation

◆ setModelMatrix()

void ChemStructureShader::setModelMatrix ( const Matrix4 &  matrix)
inline

Update the model matrix uniform of this shader.

Parameters
matrixthe new model matrix

◆ setModelViewMatrix()

void ChemStructureShader::setModelViewMatrix ( const Matrix4 &  matrix)
inline

Update the model view matrix uniform of this shader.

Parameters
matrixthe new model view matrix

◆ setProjectionMatrix()

void ChemStructureShader::setProjectionMatrix ( const Matrix4 &  matrix)
inline

Update the projection matrix uniform of this shader.

Parameters
matrixthe new projection matrix

◆ setViewMatrix()

void ChemStructureShader::setViewMatrix ( const Matrix4 &  matrix)
inline

Update the view matrix uniform of this shader.

Parameters
matrixthe new view matrix

Member Data Documentation

◆ modelMatrixUniform

Int ChemStructureShader::modelMatrixUniform
private

◆ modelViewMatrixUniform

Int ChemStructureShader::modelViewMatrixUniform
private

◆ projectionMatrixUniform

Int ChemStructureShader::projectionMatrixUniform
private

◆ viewMatrixUniform

Int ChemStructureShader::viewMatrixUniform
private

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