-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoglwrap.h
48 lines (39 loc) · 1.14 KB
/
oglwrap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) Tamas Csala
/** @file oglwrap.h
@brief The main header, including the core files of the library.
It doesn't include everything, just the main features.
*/
#ifndef OGLWRAP_OGLWRAP_H_
#define OGLWRAP_OGLWRAP_H_
#ifdef gl
#undef gl
#warning Please do not define a macro named gl before including oglwrap
#endif
#ifdef glfunc
#undef glfunc
#warning Please do not define a macro named glfunc before including oglwrap
#endif
// Commonly used oglwrap headers
#include "./buffer.h"
#include "./program.h"
#include "./context.h"
#include "./uniform.h"
#include "./smart_enums.h"
#include "./vertex_array.h"
#include "./vertex_attrib.h"
#include "textures/texture_2D.h"
#include "textures/texture_cube.h"
// Optional headers
#if OGLWRAP_INCLUDE_EVERYTHING
#include "./texture.h"
#include "./framebuffer.h"
#include "./transform_feedback.h"
#include "shapes/cube_shape.h"
#include "shapes/sphere_shape.h"
#include "shapes/rectangle_shape.h"
#endif
// Put a warning if I forget to undef the internal macros
#ifdef gl
#warning Some oglwrap header forgot to undefine its internal macros.
#endif
#endif // OGLWRAP_OGLWRAP_H_