15#include "cal3d/global.h"
38 int getNormals(
float *pNormalBuffer,
int stride=0);
44 int getVertices(
float *pVertexBuffer,
int stride=0);
int getFaces(CalIndex *pFaceBuffer)
Provides access to the face data.
Definition renderer.cpp:196
void endRendering()
Finishes the rendering query phase.
Definition renderer.cpp:94
int getVerticesAndNormals(float *pVertexBuffer, int stride=0)
Provides access to the submesh data.
Definition renderer.cpp:590
int getMapCount()
Returns the number of maps.
Definition renderer.cpp:209
int getNormals(float *pNormalBuffer, int stride=0)
Provides access to the normal data.
Definition renderer.cpp:340
void getSpecularColor(unsigned char *pColorBuffer)
Provides access to the specular color.
Definition renderer.cpp:405
void getAmbientColor(unsigned char *pColorBuffer)
Provides access to the ambient color.
Definition renderer.cpp:110
int getVertices(float *pVertexBuffer, int stride=0)
Provides access to the vertex data.
Definition renderer.cpp:543
int getVerticesNormalsAndTexCoords(float *pVertexBuffer, int NumTexCoords=1)
Provides access to the submesh data.
Definition renderer.cpp:638
int getTextureCoordinates(int mapId, float *pTextureCoordinateBuffer, int stride=0)
Provides access to the texture coordinate data.
Definition renderer.cpp:470
int getSubmeshCount(int meshId)
Returns the number of submeshes.
Definition renderer.cpp:442
CalRenderer(CalModel *pModel)
Constructs the renderer instance.
Definition renderer.cpp:40
void setNormalization(bool normalize)
Sets the normalization flag to true or false.
Definition renderer.cpp:754
float getShininess()
Returns the shininess factor.
Definition renderer.cpp:385
int getMeshCount()
Returns the number of attached meshes.
Definition renderer.cpp:261
bool isTangentsEnabled(int mapId)
Returns if tangent are enabled.
Definition renderer.cpp:527
int getFaceCount()
Returns the number of faces.
Definition renderer.cpp:180
bool beginRendering()
Initializes the rendering query phase.
Definition renderer.cpp:68
bool selectMeshSubmesh(int meshId, int submeshId)
Selects a mesh/submesh for rendering data queries.
Definition renderer.cpp:727
int getTangentSpaces(int mapId, float *pTangentSpaceBuffer, int stride=0)
Provides access to the tangent space data.
Definition renderer.cpp:283
Cal::UserData getMapUserData(int mapId)
Provides access to a specified map user data.
Definition renderer.cpp:232
int getVertexCount()
Returns the number of vertices.
Definition renderer.cpp:514
void getDiffuseColor(unsigned char *pColorBuffer)
Provides access to the diffuse color.
Definition renderer.cpp:146