Base class for all texture cores (abstract).
More...
#include "TextureCore.h"
Base class for all texture cores (abstract).
Definition at line 39 of file TextureCore.h.
◆ TextureCore()
scg::TextureCore::TextureCore |
( |
| ) |
|
◆ ~TextureCore()
virtual scg::TextureCore::~TextureCore |
( |
| ) |
|
|
pure virtual |
◆ render()
virtual void scg::TextureCore::render |
( |
RenderState * |
renderState | ) |
|
|
virtual |
◆ renderPost()
virtual void scg::TextureCore::renderPost |
( |
RenderState * |
renderState | ) |
|
|
virtual |
◆ rotate()
TextureCore* scg::TextureCore::rotate |
( |
GLfloat |
angleDeg, |
|
|
glm::vec3 |
axis |
|
) |
| |
Rotate texture (post-multiply local texture matrix by transformation).
- Parameters
-
angleDeg | rotation angle (degrees) |
axis | rotation axis |
- Returns
- this pointer for method chaining
◆ scale()
TextureCore* scg::TextureCore::scale |
( |
glm::vec3 |
scaling | ) |
|
Scale texture (post-multiply local texture matrix by transformation).
- Parameters
-
scaling | scaling factors in s, t, and u directions |
- Returns
- this pointer for method chaining
◆ setMatrix()
TextureCore* scg::TextureCore::setMatrix |
( |
glm::mat4 |
matrix | ) |
|
Set texture matrix.
- Returns
- this pointer for method chaining
◆ matrix_
glm::mat4 scg::TextureCore::matrix_ |
|
protected |
◆ tex_
GLuint scg::TextureCore::tex_ |
|
protected |
◆ texOld_
GLint scg::TextureCore::texOld_ |
|
protected |
The documentation for this class was generated from the following file: