Nxna2
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Enumerations
Enumerator
Pages
src
Graphics
OpenGL.h
1
#ifndef NXNA_GRAPHICS_OPENGL_H
2
#define NXNA_GRAPHICS_OPENGL_H
3
4
#ifdef _WIN32
5
#define WIN32_LEAN_AND_MEAN
6
#include <Windows.h>
7
#endif
8
9
#if 0
10
#include <GL/gl.h>
11
#include "glext.h"
12
13
14
// create function prototypes for everything that Windows leaves out
15
16
#define NXNA_DECLARE_GL_EXTENSION_20(p, n) NXNA_DECLARE_GL_EXTENSION(2, 0, p, n)
17
#define NXNA_DECLARE_GL_EXTENSION_30(p, n) NXNA_DECLARE_GL_EXTENSION(3, 0, p, n)
18
#define NXNA_DECLARE_GL_EXTENSION(vmajor, vminor, p,n) extern p n;
19
#include "GLExtensions.h"
20
21
/* OpenGL 4.3 */
22
extern
PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback;
23
#else
24
25
#define GLEW_STATIC
26
#include "glew/glew.h"
27
28
#endif
29
30
namespace
Nxna
31
{
32
namespace
Graphics
33
{
34
namespace
OpenGL
35
{
36
void
LoadGLExtensions(
int
glMajorVersion,
int
glMinorVersion);
37
}
38
}
39
}
40
41
#endif // NXNA_GRAPHICS_OPENGL_H
42
Generated on Sun Aug 7 2016 12:28:15 for Nxna2 by
1.8.7