- 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 
18 class CalModel;
19 class CalSubmesh;
20 
21 
22 class CAL3D_API CalRenderer
23 {
24 public:
25  CalRenderer(CalModel* pModel);
26  CalRenderer(CalRenderer* pRenderer);
27  ~CalRenderer() { }
28 
29  bool beginRendering();
30  void endRendering();
31  void getAmbientColor(unsigned char *pColorBuffer);
32  void getDiffuseColor(unsigned char *pColorBuffer);
33  int getFaceCount();
34  int getFaces(CalIndex *pFaceBuffer);
35  int getMapCount();
36  Cal::UserData getMapUserData(int mapId);
37  int getMeshCount();
38  int getNormals(float *pNormalBuffer, int stride=0);
39  float getShininess();
40  void getSpecularColor(unsigned char *pColorBuffer);
41  int getSubmeshCount(int meshId);
42  int getTextureCoordinates(int mapId, float *pTextureCoordinateBuffer, int stride=0);
43  int getVertexCount();
44  int getVertices(float *pVertexBuffer, int stride=0);
45  int getTangentSpaces(int mapId, float *pTangentSpaceBuffer, int stride=0);
46  int getVerticesAndNormals(float *pVertexBuffer, int stride=0);
47  int getVerticesNormalsAndTexCoords(float *pVertexBuffer,int NumTexCoords=1);
48  bool isTangentsEnabled(int mapId);
49  bool selectMeshSubmesh(int meshId, int submeshId);
50  void setNormalization(bool normalize);
51 
52 private:
53  CalModel *m_pModel;
54  CalSubmesh *m_pSelectedSubmesh;
55 };
56 
57 #endif
58 
59 //****************************************************************************//
Definition: submesh.h:22
Definition: renderer.h:22
Definition: model.h:30

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7