- Cal3D 0.11 API Reference -

renderer.h
1//****************************************************************************//
2// renderer.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_RENDERER_H
12#define CAL_RENDERER_H
13
14
15#include "cal3d/global.h"
16
17
18class CalModel;
19class CalSubmesh;
20
21
22class CAL3D_API CalRenderer
23{
24public:
25 CalRenderer(CalModel *pModel);
26 CalRenderer(CalRenderer *pRenderer);
27 ~CalRenderer() { }
28
29 bool beginRendering();
30 void endRendering();
31 void getAmbientColor(unsigned char *pColorBuffer) const;
32 void getDiffuseColor(unsigned char *pColorBuffer) const;
33 int getFaceCount() const;
34 int getFaces(CalIndex *pFaceBuffer) const;
35 int getMapCount() const;
36 Cal::UserData getMapUserData(int mapId);
37 const Cal::UserData getMapUserData(int mapId) const;
38 int getMeshCount() const;
39 int getNormals(float *pNormalBuffer, int stride=0) const;
40 float getShininess() const;
41 void getSpecularColor(unsigned char *pColorBuffer) const;
42 int getSubmeshCount(int meshId) const;
43 int getTextureCoordinates(int mapId, float *pTextureCoordinateBuffer, int stride=0) const;
44 int getVertexCount() const;
45 int getVertices(float *pVertexBuffer, int stride=0) const;
46 int getTangentSpaces(int mapId, float *pTangentSpaceBuffer, int stride=0) const;
47 int getVertColors(float *pVertexBuffer);
48 int getVertColorsAsStandardPixels( unsigned int *pVertexBuffer);
49 int getVerticesAndNormals(float *pVertexBuffer, int stride=0) const;
50 int getVerticesNormalsAndTexCoords(float *pVertexBuffer,int NumTexCoords=1) const;
51 bool isTangentsEnabled(int mapId) const;
52 bool selectMeshSubmesh(int meshId, int submeshId);
53 void setNormalization(bool normalize);
54 bool textureCoordinatesForMapValid( int mapId );
55 bool hasNonWhiteVertexColors();
56
57private:
58 CalModel *m_pModel;
59 CalSubmesh *m_pSelectedSubmesh;
60};
61
62#endif
63
64//****************************************************************************//
Definition model.h:31
Definition renderer.h:23
Definition submesh.h:30
A container-safe smart pointer used for refcounted classes.
Definition refptr.h:11

Generated by The Cal3D Team with Doxygen 1.10.0