77 void draw()
const noexcept;
82 void setDrawMode(
GLenum _mode)noexcept;
126 void width(
Real _w,
bool _recalc=
true) noexcept;
136 void height(
Real _h,
bool _recalc=
true) noexcept;
146 void depth(
Real _d,
bool _recalc=
true) noexcept;
159 void setCenter(
const Vec3 &_center,
bool _recalc=
true) noexcept;
164 void recalculate() noexcept;
226 std::unique_ptr< AbstractVAO >
m_vao;
Vec3 m_center
This is the center of the BBox stored for caluculations in other classes s.
Real depth() const noexcept
Depth of the BBox.
Real minY() const noexcept
the min y value of the bbox
GLint GLint GLsizei GLsizei GLsizei depth
Vec3 * getVertexArray() noexcept
the array of verts for the BBox
Real minZ() const noexcept
the min z value of the bbox
main definition of types and namespace
Real m_maxX
the max x value of the bbox
Real m_minZ
the min z value of the bbox
Real m_width
Width of the BBox.
Real maxY() const noexcept
the max y value of the bbox
Real m_height
Height of the BBox.
Vec3 * getNormalArray() noexcept
the array of normals for the BBox
Real maxX() const noexcept
the max x value of the bbox
simple Vec3 encapsulates a 3 float object like glsl vec3 but not maths use the Vec3 class for maths a...
Real m_depth
Depth of the BBox.
implementation files for RibExport class
Vec3 center() const noexcept
This is the center of the BBox stored for caluculations in other classes s.
Real width() const noexcept
accessor for the width of the BBox
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
encapsulates a 4d Homogenous Point / Vector object
Real m_minX
the min x value of the bbox
Real m_maxY
the max y value of the bbox
a simple 3 tuple container for compatibility with glsl
std::unique_ptr< AbstractVAO > m_vao
a pointer to the VAO buffer used for drawing the bbox
Real minX() const noexcept
the min x value of the bbox
Real height() const noexcept
Height of the BBox.
GLuint m_drawMode
sets the draw mode for the BBox Faces, set to GL_LINE for line faces and GL_FILL for filled ...
Real m_maxZ
the max z value of the bbox
Real maxZ() const noexcept
the max z value of the bbox
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
Simple Bounding box class used in various parts of ngl and other example programs.
GLint GLint GLint GLint GLint GLint GLsizei width
Real m_minY
the min y value of the bbox