mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Merge pull request #1636 from glebm/glad
glad.hpp: Fix include inside a namespace
This commit is contained in:
@@ -62,14 +62,6 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
namespace glad {
|
||||
|
||||
bool gladLoadGL(void);
|
||||
|
||||
typedef void* (* LOADER)(const char *name);
|
||||
bool gladLoadGLLoader(LOADER);
|
||||
|
||||
|
||||
#ifndef GLEXT_64_TYPES_DEFINED
|
||||
/* This code block is duplicated in glxext.h, so must be protected */
|
||||
#define GLEXT_64_TYPES_DEFINED
|
||||
@@ -107,6 +99,14 @@ typedef unsigned __int64 uint64_t;
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace glad {
|
||||
|
||||
bool gladLoadGL(void);
|
||||
|
||||
typedef void* (* LOADER)(const char *name);
|
||||
bool gladLoadGLLoader(LOADER);
|
||||
|
||||
typedef unsigned int GLenum;
|
||||
typedef unsigned char GLboolean;
|
||||
typedef unsigned int GLbitfield;
|
||||
|
||||
Reference in New Issue
Block a user