RigsofRods
Soft-body Physics Simulation
|
A visual mesh, forming a chassis for softbody actor At most one instance is created per actor. More...
#include <FlexObj.h>
Data Structures | |
struct | FlexObjVertex |
Public Member Functions | |
FlexObj (RoR::GfxActor *gfx_actor, node_t *all_nodes, std::vector< CabTexcoord > &texcoords, int numtriangles, int *triangles, std::vector< CabSubmesh > &submeshes, char *texname, const char *name, char *backtexname, char *transtexname) | |
~FlexObj () | |
Ogre::Vector3 | UpdateFlexObj () |
void | ScaleFlexObj (float factor) |
Private Member Functions | |
int | ComputeVertexPos (int tidx, int v, std::vector< CabSubmesh > &submeshes) |
Compute vertex position in the vertexbuffer (0-based offset) for node v of triangle tidx More... | |
Ogre::Vector3 | UpdateMesh () |
Private Attributes | |
Ogre::MeshPtr | m_mesh |
std::vector< Ogre::SubMesh * > | m_submeshes |
RoR::GfxActor * | m_gfx_actor |
float * | m_s_ref |
size_t | m_vertex_count |
int * | m_vertex_nodes |
Ogre::VertexDeclaration * | m_vertex_format |
Ogre::HardwareVertexBufferSharedPtr | m_hw_vbuf |
union { | |
float * m_vertices_raw | |
FlexObjVertex * m_vertices | |
}; | |
size_t | m_index_count |
unsigned short * | m_indices |
int | m_triangle_count |
A visual mesh, forming a chassis for softbody actor At most one instance is created per actor.
FlexObj::FlexObj | ( | RoR::GfxActor * | gfx_actor, |
node_t * | all_nodes, | ||
std::vector< CabTexcoord > & | texcoords, | ||
int | numtriangles, | ||
int * | triangles, | ||
std::vector< CabSubmesh > & | submeshes, | ||
char * | texname, | ||
const char * | name, | ||
char * | backtexname, | ||
char * | transtexname | ||
) |
FlexObj::~FlexObj | ( | ) |
Definition at line 237 of file FlexObj.cpp.
|
private |
Compute vertex position in the vertexbuffer (0-based offset) for node v
of triangle tidx
Definition at line 158 of file FlexObj.cpp.
void FlexObj::ScaleFlexObj | ( | float | factor | ) |
Definition at line 149 of file FlexObj.cpp.
Vector3 FlexObj::UpdateFlexObj | ( | ) |
|
private |
Definition at line 186 of file FlexObj.cpp.
union { ... } |
|
private |
|
private |
|
private |
|
private |
FlexObjVertex* RoR::FlexObj::m_vertices |