#include <MorphTargetMesh.h>
Public Member Functions | |
| CMorphTargetMesh () | |
| ~CMorphTargetMesh () | |
| bool | Load (const char *file_name, const unsigned short match_vertex_count) |
| float * | GetOffsets () |
| int | GetTargetCount () |
Protected Attributes | |
| float * | m_offsets |
| offsety oproti zakladnim vertexu (dynamicke pole ve tvaru x1,y1,z1,0,x2,y2,z2,0, ..., xn,yn,zn,0 -> 4 slozky kvuli GPU) | |
| int | m_target_count |
| celkovy pocet morph targetu | |
Slouzi k nacitani morph targetu ze souboru JK2morph
Konstruktor
Destruktor
| float* CMorphTargetMesh::GetOffsets | ( | ) | [inline] |
Zisknai offsetu (kvuli nahrani do GPU bufferu (v pripade OGL TBO))
| int CMorphTargetMesh::GetTargetCount | ( | ) | [inline] |
Ziskani poctu targetu
| pocet | targetu |
| bool CMorphTargetMesh::Load | ( | const char * | file_name, |
| const unsigned short | match_vertex_count | ||
| ) |
Nacte morph targety ze zadaneho souboru
| file_name | nazev souboru |
| match_vertex_count | jakemu poctu vertexu musi morph file odpovodat, pokud neodpovida return false |
1.8.0