VisualizeVideo
 All Classes Functions Pages
Public Member Functions | List of all members
Cube Class Reference

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)
 

Detailed Description

Generates and renders a cube.

Does all the setup to generate a cube and then render the cube with a 3D texture in OpenGL.

Constructor & Destructor Documentation

Cube::Cube ( std::shared_ptr< ResourceLoader resLoader,
VolumeData  volumedata 
)

Initializes the camera

Parameters
resLoaderis the pointer to our resourceLoader, which loads all the textures
volumedatais the datastructure of the video

The documentation for this class was generated from the following files: