diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CGeometryCreator.h | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGeometryCreator.h b/libraries/irrlicht-1.8/source/Irrlicht/CGeometryCreator.h index 326e11c..4dc9bcb 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CGeometryCreator.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CGeometryCreator.h | |||
@@ -1,65 +1,65 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __C_GEOMETRY_CREATOR_H_INCLUDED__ | 5 | #ifndef __C_GEOMETRY_CREATOR_H_INCLUDED__ |
6 | #define __C_GEOMETRY_CREATOR_H_INCLUDED__ | 6 | #define __C_GEOMETRY_CREATOR_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IGeometryCreator.h" | 8 | #include "IGeometryCreator.h" |
9 | #include "SMeshBuffer.h" | 9 | #include "SMeshBuffer.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | 13 | ||
14 | namespace scene | 14 | namespace scene |
15 | { | 15 | { |
16 | 16 | ||
17 | //! class for creating geometry on the fly | 17 | //! class for creating geometry on the fly |
18 | class CGeometryCreator : public IGeometryCreator | 18 | class CGeometryCreator : public IGeometryCreator |
19 | { | 19 | { |
20 | void addToBuffer(const video::S3DVertex& v, SMeshBuffer* Buffer) const; | 20 | void addToBuffer(const video::S3DVertex& v, SMeshBuffer* Buffer) const; |
21 | public: | 21 | public: |
22 | IMesh* createCubeMesh(const core::vector3df& size) const; | 22 | IMesh* createCubeMesh(const core::vector3df& size) const; |
23 | 23 | ||
24 | IMesh* createHillPlaneMesh( | 24 | IMesh* createHillPlaneMesh( |
25 | const core::dimension2d<f32>& tileSize, const core::dimension2d<u32>& tileCount, | 25 | const core::dimension2d<f32>& tileSize, const core::dimension2d<u32>& tileCount, |
26 | video::SMaterial* material, f32 hillHeight, const core::dimension2d<f32>& countHills, | 26 | video::SMaterial* material, f32 hillHeight, const core::dimension2d<f32>& countHills, |
27 | const core::dimension2d<f32>& textureRepeatCount) const; | 27 | const core::dimension2d<f32>& textureRepeatCount) const; |
28 | 28 | ||
29 | IMesh* createTerrainMesh(video::IImage* texture, | 29 | IMesh* createTerrainMesh(video::IImage* texture, |
30 | video::IImage* heightmap, const core::dimension2d<f32>& stretchSize, | 30 | video::IImage* heightmap, const core::dimension2d<f32>& stretchSize, |
31 | f32 maxHeight, video::IVideoDriver* driver, | 31 | f32 maxHeight, video::IVideoDriver* driver, |
32 | const core::dimension2d<u32>& defaultVertexBlockSize, | 32 | const core::dimension2d<u32>& defaultVertexBlockSize, |
33 | bool debugBorders=false) const; | 33 | bool debugBorders=false) const; |
34 | 34 | ||
35 | IMesh* createArrowMesh(const u32 tesselationCylinder, | 35 | IMesh* createArrowMesh(const u32 tesselationCylinder, |
36 | const u32 tesselationCone, const f32 height, | 36 | const u32 tesselationCone, const f32 height, |
37 | const f32 cylinderHeight, const f32 width0, | 37 | const f32 cylinderHeight, const f32 width0, |
38 | const f32 width1, const video::SColor vtxColor0, | 38 | const f32 width1, const video::SColor vtxColor0, |
39 | const video::SColor vtxColor1) const; | 39 | const video::SColor vtxColor1) const; |
40 | 40 | ||
41 | IMesh* createSphereMesh(f32 radius, u32 polyCountX, u32 polyCountY) const; | 41 | IMesh* createSphereMesh(f32 radius, u32 polyCountX, u32 polyCountY) const; |
42 | 42 | ||
43 | IMesh* createCylinderMesh(f32 radius, f32 length, u32 tesselation, | 43 | IMesh* createCylinderMesh(f32 radius, f32 length, u32 tesselation, |
44 | const video::SColor& color=0xffffffff, | 44 | const video::SColor& color=0xffffffff, |
45 | bool closeTop=true, f32 oblique=0.f) const; | 45 | bool closeTop=true, f32 oblique=0.f) const; |
46 | 46 | ||
47 | IMesh* createConeMesh(f32 radius, f32 length, u32 tesselation, | 47 | IMesh* createConeMesh(f32 radius, f32 length, u32 tesselation, |
48 | const video::SColor& colorTop=0xffffffff, | 48 | const video::SColor& colorTop=0xffffffff, |
49 | const video::SColor& colorBottom=0xffffffff, | 49 | const video::SColor& colorBottom=0xffffffff, |
50 | f32 oblique=0.f) const; | 50 | f32 oblique=0.f) const; |
51 | 51 | ||
52 | IMesh* createVolumeLightMesh( | 52 | IMesh* createVolumeLightMesh( |
53 | const u32 subdivideU=32, const u32 subdivideV=32, | 53 | const u32 subdivideU=32, const u32 subdivideV=32, |
54 | const video::SColor footColor=0xffffffff, | 54 | const video::SColor footColor=0xffffffff, |
55 | const video::SColor tailColor=0xffffffff, | 55 | const video::SColor tailColor=0xffffffff, |
56 | const f32 lpDistance = 8.f, | 56 | const f32 lpDistance = 8.f, |
57 | const core::vector3df& lightDim = core::vector3df(1.f,1.2f,1.f)) const; | 57 | const core::vector3df& lightDim = core::vector3df(1.f,1.2f,1.f)) const; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | 60 | ||
61 | } // end namespace scene | 61 | } // end namespace scene |
62 | } // end namespace irr | 62 | } // end namespace irr |
63 | 63 | ||
64 | #endif | 64 | #endif |
65 | 65 | ||