33#include <NDEVR/Model.h>
The equivelent of std::vector but with a bit more control.
Model()
Default constructor. Creates an uninitialized Model.
Represents a color in the RGB space with optional alpha transparency.
bool m_grid_visible
Whether the ground-plane grid overlay is currently visible.
Skybox(const Model &model)
Constructs a Skybox from an existing Model.
void setToColor(const RGBColor &color)
Sets the skybox to a uniform solid color.
void setupSkybox()
Initializes the skybox geometry and model structure.
static Buffer< Triangle< 3, fltp04 > > getCube()
Generates cube geometry as a buffer of triangles for use as a skybox mesh.
bool gridVisible()
Returns whether the ground-plane grid is currently visible.
void setToSky()
Sets the skybox to a default sky appearance.
void setToGradient(const RGBColor &top_a, const RGBColor &top_b, const RGBColor &bottom_a, const RGBColor &bottom_b)
Sets the skybox to a four-corner gradient.
void showGrid(fltp08 grid_spacing, fltp04 thickness)
Shows a ground-plane grid overlay with the specified spacing and line thickness.
void hideGrid()
Hides the ground-plane grid overlay.
void setToGradient(const RGBColor &top, const RGBColor &bottom)
Sets the skybox to a vertical two-color gradient.
static Buffer< Triangle< 3, fltp04 > > getPlane()
Generates plane geometry as a buffer of triangles for use as a skybox backdrop.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
double fltp08
Defines an alias representing an 8 byte floating-point number.