- Cal3D 0.11 API Reference -
src
cal3d
mesh.h
1
//****************************************************************************//
2
// mesh.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_MESH_H
12
#define CAL_MESH_H
13
14
15
#include "cal3d/global.h"
16
17
18
class
CalModel
;
19
class
CalCoreMesh
;
20
class
CalSubmesh
;
21
22
23
class
CAL3D_API
CalMesh
24
{
25
// constructors/destructor
26
public
:
27
CalMesh
(
CalCoreMesh
*pCoreMesh);
28
~CalMesh
();
29
30
CalCoreMesh
*getCoreMesh();
31
const
CalCoreMesh
*getCoreMesh()
const
;
32
CalSubmesh
*getSubmesh(
int
id
);
33
const
CalSubmesh
*getSubmesh(
int
id
)
const
;
34
int
getSubmeshCount()
const
;
35
std::vector<CalSubmesh *>& getVectorSubmesh();
36
const
std::vector<CalSubmesh *>& getVectorSubmesh()
const
;
37
void
setLodLevel(
float
lodLevel);
38
void
setMaterialSet(
int
setId);
39
void
setModel(
CalModel
*pModel);
40
void
disableInternalData();
41
42
private
:
43
CalModel
*m_pModel;
44
CalCoreMesh
*m_pCoreMesh;
45
std::vector<CalSubmesh *> m_vectorSubmesh;
46
};
47
48
#endif
49
50
//****************************************************************************//
CalCoreMesh
Definition
coremesh.h:24
CalMesh
Definition
mesh.h:24
CalModel
Definition
model.h:31
CalSubmesh
Definition
submesh.h:30
Generated by
The Cal3D Team
with
Doxygen 1.10.0