arsa  2.7
IOctreeSceneNode.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_OCTREE_SCENE_NODE_H_INCLUDED__
6 #define __I_OCTREE_SCENE_NODE_H_INCLUDED__
7 
8 #include "IMeshSceneNode.h"
9 
10 namespace irr
11 {
12 namespace scene
13 {
14 
16 
21 {
24 
32 
38 };
39 
42 {
46 
49 
50 };
51 
54 {
55 public:
56 
58 
61  const core::vector3df& position = core::vector3df(0,0,0),
62  const core::vector3df& rotation = core::vector3df(0,0,0),
63  const core::vector3df& scale = core::vector3df(1,1,1))
64  : IMeshSceneNode(parent, mgr, id, position, rotation, scale) {}
65 
67  // NOTE: Will currently _always_ return EOV_NO_VBO.
68  // Octree's with VBO's don't work yet correctly.
69  virtual EOCTREENODE_VBO getUseVBO() const = 0;
70 
72  virtual void setPolygonChecks(EOCTREE_POLYGON_CHECKS checks) = 0;
73 
75  virtual EOCTREE_POLYGON_CHECKS getPolygonChecks() const = 0;
76 };
77 
78 } // end namespace scene
79 } // end namespace irr
80 
81 
82 #endif
83 
GLenum GLenum GLenum GLenum GLenum scale
GLuint id
A scene node displaying a static mesh.
IOctreeSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1, 1, 1))
Constructor.
Scene node interface.
Definition: ISceneNode.h:40
No VBO's used. Vertices+indices send to graphic-card on each render.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
against the camera frustum
virtual void setPolygonChecks(EOCTREE_POLYGON_CHECKS checks)=0
Set the kind of tests polygons do for visibility against the camera.
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
EOCTREENODE_VBO
Settings if/how octree scene nodes are using hardware mesh-buffers.
virtual EOCTREE_POLYGON_CHECKS getPolygonChecks() const =0
Get the kind of tests polygons do for visibility against the camera.
virtual EOCTREENODE_VBO getUseVBO() const =0
Get if/how vertex buffer object are used for the meshbuffers.
A scene node displaying a static mesh.
EOCTREE_POLYGON_CHECKS
Kind of checks polygons of the octree scene nodes use against camera.