TDME2 1.9.121
|
Interface to compute shader skinning shader program. More...
#include <tdme/engine/subsystems/skinning/SkinningShader.h>
Classes | |
struct | ModelSkinningCache |
struct | SkinningContext |
Public Member Functions | |
SkinningShader (Renderer *renderer) | |
Public constructor. More... | |
bool | isInitialized () |
void | initialize () |
Initialize renderer. More... | |
void | useProgram () |
Use skinning program. More... | |
void | unUseProgram () |
Unuse skinning program. More... | |
void | computeSkinning (int contextIdx, Object3DBase *object3DBase, Object3DNodeMesh *object3DNodeMesh) |
Compute skinning. More... | |
void | reset () |
Reset. More... | |
Private Attributes | |
int32_t | programId { -1 } |
int32_t | shaderId { -1 } |
int32_t | uniformVertexCount { -1 } |
int32_t | uniformMatrixCount { -1 } |
int32_t | uniformInstanceCount { -1 } |
bool | isRunning |
bool | initialized |
Renderer * | renderer { nullptr } |
vector< SkinningContext > | contexts |
map< string, ModelSkinningCache > | cache |
Mutex | mutex |
Interface to compute shader skinning shader program.
Definition at line 29 of file SkinningShader.h.
SkinningShader | ( | Renderer * | renderer | ) |
void computeSkinning | ( | int | contextIdx, |
Object3DBase * | object3DBase, | ||
Object3DNodeMesh * | object3DNodeMesh | ||
) |
Compute skinning.
contextIdx | context index |
object3DBase | object 3D base |
object3DNodeMesh | object 3d node mesh |
Definition at line 106 of file SkinningShader.cpp.
void initialize | ( | ) |
Initialize renderer.
Definition at line 64 of file SkinningShader.cpp.
bool isInitialized | ( | ) |
Definition at line 59 of file SkinningShader.cpp.
void reset | ( | ) |
Reset.
Definition at line 262 of file SkinningShader.cpp.
void unUseProgram | ( | ) |
Unuse skinning program.
Definition at line 253 of file SkinningShader.cpp.
void useProgram | ( | ) |
Use skinning program.
Definition at line 101 of file SkinningShader.cpp.
|
private |
Definition at line 51 of file SkinningShader.h.
|
private |
Definition at line 50 of file SkinningShader.h.
|
private |
Definition at line 48 of file SkinningShader.h.
|
private |
Definition at line 47 of file SkinningShader.h.
|
private |
Definition at line 52 of file SkinningShader.h.
|
private |
Definition at line 42 of file SkinningShader.h.
|
private |
Definition at line 49 of file SkinningShader.h.
|
private |
Definition at line 43 of file SkinningShader.h.
|
private |
Definition at line 46 of file SkinningShader.h.
|
private |
Definition at line 45 of file SkinningShader.h.
|
private |
Definition at line 44 of file SkinningShader.h.