JK2eA
 All Classes Functions Variables
Public Member Functions | Protected Attributes
CMorphTargetMesh Class Reference

#include <MorphTargetMesh.h>

List of all members.

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

Detailed Description

Slouzi k nacitani morph targetu ze souboru JK2morph


Constructor & Destructor Documentation

Konstruktor

Destruktor


Member Function Documentation

float* CMorphTargetMesh::GetOffsets ( ) [inline]

Zisknai offsetu (kvuli nahrani do GPU bufferu (v pripade OGL TBO))

Returns:
pole offsetu vertexu

Ziskani poctu targetu

Parameters:
pocettargetu
bool CMorphTargetMesh::Load ( const char *  file_name,
const unsigned short  match_vertex_count 
)

Nacte morph targety ze zadaneho souboru

Parameters:
file_namenazev souboru
match_vertex_countjakemu poctu vertexu musi morph file odpovodat, pokud neodpovida return false
Returns:
true pokud bylo vse v poradku (soubor nalezen, nacten, atd.), false pokud chyba (nenalezen, nesedi pocet vertexu, atd.)

The documentation for this class was generated from the following files: