CG_Labs  2021.2
Public Member Functions | Private Attributes | List of all members
edaf80::Assignment2 Class Reference

Wrapper class for Assignment 2.

#include <assignment2.hpp>

Public Member Functions

 Assignment2 (WindowManager &windowManager)
 Default constructor. More...
 
 ~Assignment2 ()
 Default destructor. More...
 
void run ()
 Contains the logic of the assignment, along with the render loop. More...
 

Private Attributes

FPSCameraf mCamera
 
InputHandler inputHandler
 
WindowManagermWindowManager
 
GLFWwindow * window
 

Constructor & Destructor Documentation

◆ Assignment2()

edaf80::Assignment2::Assignment2 ( WindowManager windowManager)

It will initialise various modules of bonobo and retrieve a window to draw to.

◆ ~Assignment2()

edaf80::Assignment2::~Assignment2 ( )

It will release the bonobo modules initialised by the constructor, as well as the window.

Member Function Documentation

◆ run()

void edaf80::Assignment2::run ( )
Todo:
Create a tesselated sphere and a tesselated torus
Todo:
Interpolate the movement of a shape between various control points.
Todo:
Compute the interpolated position using the linear interpolation.
Todo:
Compute the interpolated position using the Catmull-Rom interpolation; use the catmull_rom_tension variable as your tension argument.

Member Data Documentation

◆ inputHandler

InputHandler edaf80::Assignment2::inputHandler
private

◆ mCamera

FPSCameraf edaf80::Assignment2::mCamera
private

◆ mWindowManager

WindowManager& edaf80::Assignment2::mWindowManager
private

◆ window

GLFWwindow* edaf80::Assignment2::window
private

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