Saxum/graphics.hh

25 lines
631 B
C++
Raw Normal View History

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
// 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:
void draw(float runTime);
// 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