18#ifndef HEADER_SHARED_GPU_OBJECTS_HPP
19#define HEADER_SHARED_GPU_OBJECTS_HPP
21#include "graphics/gl_headers.hpp"
28 static bool m_has_been_initialised;
29 static GLuint m_sky_tri_vbo;
30 static GLuint m_frustrum_vbo;
31 static GLuint m_frustrum_indices;
32 static GLuint m_View_projection_matrices_ubo;
33 static GLuint m_lighting_data_ubo;
34 static GLuint m_full_screen_quad_vao;
35 static GLuint m_ui_vao;
36 static GLuint m_quad_buffer;
37 static GLuint m_quad_vbo;
40 static void initQuadBuffer();
41 static void initSkyTriVBO();
42 static void initFrustrumVBO();
43 static void initShadowVPMUBO();
44 static void initLightingDataUBO();
50 static GLuint getSkyTriVBO()
52 assert(m_has_been_initialised);
56 static GLuint getFrustrumVBO()
58 assert(m_has_been_initialised);
59 return m_frustrum_vbo;
62 static GLuint getFrustrumIndices()
64 assert(m_has_been_initialised);
65 return m_frustrum_indices;
68 static GLuint getViewProjectionMatricesUBO()
70 assert(m_has_been_initialised);
71 return m_View_projection_matrices_ubo;
74 static GLuint getLightingDataUBO()
76 assert(m_has_been_initialised);
77 return m_lighting_data_ubo;
80 static GLuint getFullScreenQuadVAO()
82 assert(m_has_been_initialised);
83 return m_full_screen_quad_vao;
86 static GLuint getUI_VAO()
88 assert(m_has_been_initialised);
92 static GLuint getQuadBuffer()
94 assert(m_has_been_initialised);
98 static GLuint getQuadVBO()
100 assert(m_has_been_initialised);
Definition: shared_gpu_objects.hpp:26
static void initQuadVBO()
Initialises m_full_screen_quad_vbo.
Definition: shared_gpu_objects.cpp:40
static void reset()
A simple reset function.
Definition: shared_gpu_objects.cpp:181