Generates and renders a cube. More...
#include <Cube.h>
Public Member Functions | |
| Cube (std::shared_ptr< ResourceLoader > resLoader, VolumeData volumedata) | |
| void | renderVolume (Program &prog, std::shared_ptr< Camera > camera=std::shared_ptr< Camera >()) |
| renders the cube with the 3D texture | |
| void | setModelMatrix (const glm::mat4 &modelMatrix) |
Generates and renders a cube.
Does all the setup to generate a cube and then render the cube with a 3D texture in OpenGL.
| Cube::Cube | ( | std::shared_ptr< ResourceLoader > | resLoader, |
| VolumeData | volumedata | ||
| ) |
Initializes the camera
| resLoader | is the pointer to our resourceLoader, which loads all the textures |
| volumedata | is the datastructure of the video |
1.8.4