1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Made boolean values use GLboolean.

This commit is contained in:
Camilla Berglund 2010-10-25 12:36:14 +02:00
parent 7e2b014d81
commit 70b9a1f4f3
3 changed files with 25 additions and 24 deletions

View File

@ -102,7 +102,7 @@ typedef struct _GLFWlibraryNS
// dlopen handle for dynamically loading OpenGL extension entry points // dlopen handle for dynamically loading OpenGL extension entry points
void* OpenGLFramework; void* OpenGLFramework;
int unbundled; GLboolean unbundled;
id desktopMode; id desktopMode;
id delegate; id delegate;
id autoreleasePool; id autoreleasePool;

View File

@ -87,13 +87,13 @@ struct _GLFWhints
int accumBlueBits; int accumBlueBits;
int accumAlphaBits; int accumAlphaBits;
int auxBuffers; int auxBuffers;
int stereo; GLboolean stereo;
int windowNoResize; GLboolean windowNoResize;
int samples; int samples;
int glMajor; int glMajor;
int glMinor; int glMinor;
int glForward; GLboolean glForward;
int glDebug; GLboolean glDebug;
int glProfile; int glProfile;
}; };
@ -109,11 +109,11 @@ struct _GLFWwndconfig
int mode; int mode;
const char* title; const char* title;
int refreshRate; int refreshRate;
int windowNoResize; GLboolean windowNoResize;
int glMajor; int glMajor;
int glMinor; int glMinor;
int glForward; GLboolean glForward;
int glDebug; GLboolean glDebug;
int glProfile; int glProfile;
_GLFWwindow* share; _GLFWwindow* share;
}; };
@ -139,7 +139,7 @@ struct _GLFWfbconfig
int accumBlueBits; int accumBlueBits;
int accumAlphaBits; int accumAlphaBits;
int auxBuffers; int auxBuffers;
int stereo; GLboolean stereo;
int samples; int samples;
GLFWintptr platformID; GLFWintptr platformID;
}; };
@ -190,7 +190,8 @@ struct _GLFWwindow
// OpenGL extensions and context attributes // OpenGL extensions and context attributes
GLboolean accelerated; // GL_TRUE if OpenGL context is "accelerated" GLboolean accelerated; // GL_TRUE if OpenGL context is "accelerated"
int glMajor, glMinor, glRevision; int glMajor, glMinor, glRevision;
int glForward, glDebug, glProfile; GLboolean glForward, glDebug;
int glProfile;
PFNGLGETSTRINGIPROC GetStringi; PFNGLGETSTRINGIPROC GetStringi;
// These are defined in the current port's platform.h // These are defined in the current port's platform.h

View File

@ -256,7 +256,7 @@ typedef struct _GLFWwindowWin32
// Various platform specific internal variables // Various platform specific internal variables
int desiredRefreshRate; // Desired vertical monitor refresh rate int desiredRefreshRate; // Desired vertical monitor refresh rate
int mouseMoved; GLboolean mouseMoved;
int oldMouseX, oldMouseY; int oldMouseX, oldMouseY;
} _GLFWwindowWin32; } _GLFWwindowWin32;
@ -273,7 +273,7 @@ typedef struct _GLFWlibraryWin32
// Default monitor // Default monitor
struct { struct {
int modeChanged; GLboolean modeChanged;
int width; int width;
int height; int height;
int bitsPerPixel; int bitsPerPixel;
@ -282,7 +282,7 @@ typedef struct _GLFWlibraryWin32
// Timer data // Timer data
struct { struct {
int hasPerformanceCounter; GLboolean hasPerformanceCounter;
double resolution; double resolution;
unsigned int t0_32; unsigned int t0_32;
__int64 t0_64; __int64 t0_64;