Wrapper for the 'onelighttexture' GLSL program.
More...
#include <simpletexturedshader.h>
Wrapper for the 'onelighttexture' GLSL program.
◆ SimpleTexturedShader()
| SimpleTexturedShader::SimpleTexturedShader |
( |
| ) |
|
This constructor DOES NOT CREATE THE PROGRAM. Call create() before using any other methods.
◆ bind()
| void SimpleTexturedShader::bind |
( |
| ) |
|
Binds the OpenGL program.
◆ bindUniformTexture()
| void SimpleTexturedShader::bindUniformTexture |
( |
QOpenGLTexture & |
texture | ) |
|
◆ create()
| void SimpleTexturedShader::create |
( |
| ) |
|
Creates the program. Assumes an OpenGL context is bound.
◆ destroy()
| void SimpleTexturedShader::destroy |
( |
| ) |
|
Destroys the program. Assumes an OpenGL context is bound.
◆ disableArrays()
| void SimpleTexturedShader::disableArrays |
( |
| ) |
|
Disables all relevant arrays.
◆ enableArrays()
| void SimpleTexturedShader::enableArrays |
( |
| ) |
|
Enables all relevant arrays.
◆ release()
| void SimpleTexturedShader::release |
( |
| ) |
|
Unbinds the OpenGL program.
◆ releaseUniformTexture()
| void SimpleTexturedShader::releaseUniformTexture |
( |
QOpenGLTexture & |
texture | ) |
|
◆ setAttrNormalBuffer()
| void SimpleTexturedShader::setAttrNormalBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrPositionBuffer()
| void SimpleTexturedShader::setAttrPositionBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrReflAmbientBuffer()
| void SimpleTexturedShader::setAttrReflAmbientBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrReflDiffuseBuffer()
| void SimpleTexturedShader::setAttrReflDiffuseBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrReflSpecularBuffer()
| void SimpleTexturedShader::setAttrReflSpecularBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrShininessBuffer()
| void SimpleTexturedShader::setAttrShininessBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setAttrTexCoordsBuffer()
| void SimpleTexturedShader::setAttrTexCoordsBuffer |
( |
int |
offset = 0, |
|
|
int |
stride = 0 |
|
) |
| |
◆ setUniformAmbientColor()
| void SimpleTexturedShader::setUniformAmbientColor |
( |
QVector3D |
color | ) |
|
◆ setUniformCameraPosition()
| void SimpleTexturedShader::setUniformCameraPosition |
( |
QVector3D |
pos | ) |
|
◆ setUniformMVP()
| void SimpleTexturedShader::setUniformMVP |
( |
QMatrix4x4 |
mat | ) |
|
◆ setUniformPointToLight()
| void SimpleTexturedShader::setUniformPointToLight |
( |
QVector3D |
pos | ) |
|
◆ setUniformSourceDiffuseColor()
| void SimpleTexturedShader::setUniformSourceDiffuseColor |
( |
QVector3D |
color | ) |
|
◆ setUniformSourceSpecularColor()
| void SimpleTexturedShader::setUniformSourceSpecularColor |
( |
QVector3D |
color | ) |
|
◆ mAttrNormal
| int SimpleTexturedShader::mAttrNormal |
|
protected |
◆ mAttrPosition
| int SimpleTexturedShader::mAttrPosition |
|
protected |
◆ mAttrReflAmbient
| int SimpleTexturedShader::mAttrReflAmbient |
|
protected |
◆ mAttrReflDiffuse
| int SimpleTexturedShader::mAttrReflDiffuse |
|
protected |
◆ mAttrReflSpecular
| int SimpleTexturedShader::mAttrReflSpecular |
|
protected |
◆ mAttrShininess
| int SimpleTexturedShader::mAttrShininess |
|
protected |
◆ mAttrTexCoords
| int SimpleTexturedShader::mAttrTexCoords |
|
protected |
◆ mProgram
| QSharedPointer<QOpenGLShaderProgram> SimpleTexturedShader::mProgram |
|
protected |
◆ mUnifAmbientColor
| int SimpleTexturedShader::mUnifAmbientColor |
|
protected |
◆ mUnifCameraPosition
| int SimpleTexturedShader::mUnifCameraPosition |
|
protected |
◆ mUnifMVP
| int SimpleTexturedShader::mUnifMVP |
|
protected |
◆ mUnifPointToLight
| int SimpleTexturedShader::mUnifPointToLight |
|
protected |
◆ mUnifSourceDiffuseColor
| int SimpleTexturedShader::mUnifSourceDiffuseColor |
|
protected |
◆ mUnifSourceSpecularColor
| int SimpleTexturedShader::mUnifSourceSpecularColor |
|
protected |
◆ mUnifTexture
| int SimpleTexturedShader::mUnifTexture |
|
protected |
The documentation for this class was generated from the following files: