TDME2 1.9.121
|
Texture 2D render shader. More...
#include <tdme/engine/subsystems/texture2D/Texture2DRenderShader.h>
Public Member Functions | |
Texture2DRenderShader (Renderer *renderer) | |
Public constructor. More... | |
~Texture2DRenderShader () | |
Public destructor. More... | |
bool | isInitialized () |
void | initialize () |
Initialize. More... | |
void | useProgram () |
Use render program. More... | |
void | unUseProgram () |
Un use render program. More... | |
void | renderTexture (Engine *engine, const Vector2 &position, const Vector2 &dimension, int textureId, int width=-1, int height=-1) |
Render texture. More... | |
Private Attributes | |
Renderer * | renderer { nullptr } |
int32_t | vertexShaderId { -1 } |
int32_t | fragmentShaderId { -1 } |
int32_t | programId { -1 } |
int32_t | uniformTextureUnit { -1 } |
int32_t | vboVertices { -1 } |
int32_t | vboTextureCoordinates {-1 } |
bool | initialized |
bool | isRunning |
Texture2DRenderShader | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 22 of file Texture2DRenderShader.cpp.
Public destructor.
Definition at line 29 of file Texture2DRenderShader.cpp.
void initialize | ( | ) |
Initialize.
Definition at line 39 of file Texture2DRenderShader.cpp.
bool isInitialized | ( | ) |
Definition at line 34 of file Texture2DRenderShader.cpp.
void renderTexture | ( | Engine * | engine, |
const Vector2 & | position, | ||
const Vector2 & | dimension, | ||
int | textureId, | ||
int | width = -1 , |
||
int | height = -1 |
||
) |
Render texture.
engine | engine to use |
position | 2D position on screen |
dimension | 2D dimenson on screen |
textureId | texture id |
width | optional render target width |
height | optional render target height |
Definition at line 93 of file Texture2DRenderShader.cpp.
void unUseProgram | ( | ) |
Un use render program.
Definition at line 88 of file Texture2DRenderShader.cpp.
void useProgram | ( | ) |
Use render program.
Definition at line 79 of file Texture2DRenderShader.cpp.
|
private |
Definition at line 25 of file Texture2DRenderShader.h.
|
private |
Definition at line 30 of file Texture2DRenderShader.h.
|
private |
Definition at line 31 of file Texture2DRenderShader.h.
|
private |
Definition at line 26 of file Texture2DRenderShader.h.
|
private |
Definition at line 23 of file Texture2DRenderShader.h.
|
private |
Definition at line 27 of file Texture2DRenderShader.h.
|
private |
Definition at line 29 of file Texture2DRenderShader.h.
|
private |
Definition at line 28 of file Texture2DRenderShader.h.
|
private |
Definition at line 24 of file Texture2DRenderShader.h.