15#include "cal3d/global.h"
34 int getFaces(CalIndex *pFaceBuffer)
const;
39 int getNormals(
float *pNormalBuffer,
int stride=0)
const;
45 int getVertices(
float *pVertexBuffer,
int stride=0)
const;
46 int getTangentSpaces(
int mapId,
float *pTangentSpaceBuffer,
int stride=0)
const;
48 int getVertColorsAsStandardPixels(
unsigned int *pVertexBuffer);
55 bool hasNonWhiteVertexColors();
int getVerticesNormalsAndTexCoords(float *pVertexBuffer, int NumTexCoords=1) const
Provides access to the submesh data.
Definition renderer.cpp:775
bool isTangentsEnabled(int mapId) const
Returns if tangent are enabled.
Definition renderer.cpp:582
void endRendering()
Finishes the rendering query phase.
Definition renderer.cpp:96
bool textureCoordinatesForMapValid(int mapId)
Returns true if texture coordinates exist for the given map.
Definition renderer.cpp:551
void getDiffuseColor(unsigned char *pColorBuffer) const
Provides access to the diffuse color.
Definition renderer.cpp:148
int getVerticesAndNormals(float *pVertexBuffer, int stride=0) const
Provides access to the submesh data.
Definition renderer.cpp:727
int getFaces(CalIndex *pFaceBuffer) const
Provides access to the face data.
Definition renderer.cpp:198
void getAmbientColor(unsigned char *pColorBuffer) const
Provides access to the ambient color.
Definition renderer.cpp:112
int getMapCount() const
Returns the number of maps.
Definition renderer.cpp:211
int getFaceCount() const
Returns the number of faces.
Definition renderer.cpp:182
int getVertices(float *pVertexBuffer, int stride=0) const
Provides access to the vertex data.
Definition renderer.cpp:598
int getTextureCoordinates(int mapId, float *pTextureCoordinateBuffer, int stride=0) const
Provides access to the texture coordinate data.
Definition renderer.cpp:505
int getNormals(float *pNormalBuffer, int stride=0) const
Provides access to the normal data.
Definition renderer.cpp:375
int getVertexCount() const
Returns the number of vertices.
Definition renderer.cpp:569
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:891
float getShininess() const
Returns the shininess factor.
Definition renderer.cpp:420
int getTangentSpaces(int mapId, float *pTangentSpaceBuffer, int stride=0) const
Provides access to the tangent space data.
Definition renderer.cpp:318
int getMeshCount() const
Returns the number of attached meshes.
Definition renderer.cpp:296
void getSpecularColor(unsigned char *pColorBuffer) const
Provides access to the specular color.
Definition renderer.cpp:440
bool beginRendering()
Initializes the rendering query phase.
Definition renderer.cpp:68
int getVertColors(float *pVertexBuffer)
Provides access to the vertex colors.
Definition renderer.cpp:646
bool selectMeshSubmesh(int meshId, int submeshId)
Selects a mesh/submesh for rendering data queries.
Definition renderer.cpp:864
Cal::UserData getMapUserData(int mapId)
Provides access to a specified map user data.
Definition renderer.cpp:234
int getSubmeshCount(int meshId) const
Returns the number of submeshes.
Definition renderer.cpp:477