Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IOctreeSceneNode.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_OCTREE_SCENE_NODE_HPP_INCLUDED
6#define NIRT_I_OCTREE_SCENE_NODE_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IMeshSceneNode.hpp>
9
10namespace nirt
11{
12namespace scene
13{
14
16
39
51
54{
55public:
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
76};
77
78} // end namespace scene
79} // end namespace nirt
80
81#endif
A scene node displaying a static mesh.
Definition IMeshSceneNode.hpp:21
A scene node displaying a static mesh.
Definition IOctreeSceneNode.hpp:54
virtual void setPolygonChecks(EOCTREE_POLYGON_CHECKS checks)=0
Set 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.
virtual EOCTREE_POLYGON_CHECKS getPolygonChecks() const =0
Get the kind of tests polygons do for visibility against the camera.
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.
Definition IOctreeSceneNode.hpp:60
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
Definition ISceneManager.hpp:160
Scene node interface.
Definition ISceneNode.hpp:43
EOCTREE_POLYGON_CHECKS
Kind of checks polygons of the octree scene nodes use against camera.
Definition IOctreeSceneNode.hpp:42
@ EOPC_BOX
Definition IOctreeSceneNode.hpp:45
@ EOPC_FRUSTUM
against the camera frustum
Definition IOctreeSceneNode.hpp:48
EOCTREENODE_VBO
Settings if/how octree scene nodes are using hardware mesh-buffers.
Definition IOctreeSceneNode.hpp:21
@ EOV_USE_VBO
Definition IOctreeSceneNode.hpp:31
@ EOV_USE_VBO_WITH_VISIBITLY
Definition IOctreeSceneNode.hpp:37
@ EOV_NO_VBO
No VBO's used. Vertices+indices send to graphic-card on each render.
Definition IOctreeSceneNode.hpp:23
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print