2014-10-20 16:23:25 +00:00
|
|
|
#ifndef GRAPHICS_HH_INCLUDED
|
|
|
|
#define GRAPHICS_HH_INCLUDED
|
|
|
|
|
2014-10-20 16:49:10 +00:00
|
|
|
#include "main.hh"
|
|
|
|
|
|
|
|
#include <ACGL/Base/Settings.hh>
|
|
|
|
#include <ACGL/Math/Math.hh>
|
2014-10-20 16:23:25 +00:00
|
|
|
|
2014-10-20 16:16:47 +00:00
|
|
|
// gets called after the OpenGL window is prepared, init of example specific stuff:
|
|
|
|
void initCustomResources();
|
|
|
|
|
|
|
|
// gets called at application shutdown:
|
|
|
|
void deleteCustomResources();
|
|
|
|
|
|
|
|
// gets called ech frame, runTime is in seconds:
|
2014-11-12 23:40:28 +00:00
|
|
|
void draw(float runTime);
|
2014-10-20 16:16:47 +00:00
|
|
|
|
|
|
|
// gets called at window resize:
|
|
|
|
void resizeCallback( GLFWwindow *, int newWidth, int newHeight );
|
|
|
|
|
|
|
|
// to build the projection matrix:
|
|
|
|
glm::mat4 buildFrustum( float phiInDegree, float near, float far, float aspectRatio);
|
2014-10-20 16:49:10 +00:00
|
|
|
|
|
|
|
#endif
|