mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Use more GLFWbool
This commit is contained in:
parent
2b52008405
commit
45efb935c5
|
@ -39,7 +39,7 @@
|
|||
//
|
||||
typedef struct _GLFWjoydeviceNS
|
||||
{
|
||||
int present;
|
||||
GLFWbool present;
|
||||
char name[256];
|
||||
|
||||
IOHIDDeviceRef deviceRef;
|
||||
|
|
|
@ -176,7 +176,7 @@ static GLFWbool chooseFBConfigs(const _GLFWctxconfig* ctxconfig,
|
|||
|
||||
// Initialize EGL
|
||||
//
|
||||
int _glfwInitEGL(void)
|
||||
GLFWbool _glfwInitEGL(void)
|
||||
{
|
||||
int i;
|
||||
const char* sonames[] =
|
||||
|
@ -284,7 +284,7 @@ void _glfwTerminateEGL(void)
|
|||
|
||||
// Create the OpenGL or OpenGL ES context
|
||||
//
|
||||
int _glfwCreateContextEGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig)
|
||||
{
|
||||
|
|
|
@ -207,9 +207,9 @@ typedef struct _GLFWlibraryEGL
|
|||
} _GLFWlibraryEGL;
|
||||
|
||||
|
||||
int _glfwInitEGL(void);
|
||||
GLFWbool _glfwInitEGL(void);
|
||||
void _glfwTerminateEGL(void);
|
||||
int _glfwCreateContextEGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig);
|
||||
void _glfwDestroyContextEGL(_GLFWwindow* window);
|
||||
|
|
|
@ -150,7 +150,7 @@ static GLXContext createLegacyContext(_GLFWwindow* window,
|
|||
|
||||
// Initialize GLX
|
||||
//
|
||||
int _glfwInitGLX(void)
|
||||
GLFWbool _glfwInitGLX(void)
|
||||
{
|
||||
int i;
|
||||
const char* sonames[] =
|
||||
|
@ -314,7 +314,7 @@ void _glfwTerminateGLX(void)
|
|||
|
||||
// Create the OpenGL or OpenGL ES context
|
||||
//
|
||||
int _glfwCreateContextGLX(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextGLX(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig)
|
||||
{
|
||||
|
|
|
@ -171,9 +171,9 @@ typedef struct _GLFWlibraryGLX
|
|||
} _GLFWlibraryGLX;
|
||||
|
||||
|
||||
int _glfwInitGLX(void);
|
||||
GLFWbool _glfwInitGLX(void);
|
||||
void _glfwTerminateGLX(void);
|
||||
int _glfwCreateContextGLX(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextGLX(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig);
|
||||
void _glfwDestroyContextGLX(_GLFWwindow* window);
|
||||
|
|
|
@ -231,10 +231,10 @@ struct _GLFWfbconfig
|
|||
int accumBlueBits;
|
||||
int accumAlphaBits;
|
||||
int auxBuffers;
|
||||
int stereo;
|
||||
GLFWbool stereo;
|
||||
int samples;
|
||||
int sRGB;
|
||||
int doublebuffer;
|
||||
GLFWbool sRGB;
|
||||
GLFWbool doublebuffer;
|
||||
|
||||
// This is defined in the context API's context.h
|
||||
_GLFW_PLATFORM_FBCONFIG;
|
||||
|
@ -918,6 +918,6 @@ void _glfwFreeMonitors(_GLFWmonitor** monitors, int count);
|
|||
|
||||
/*! @ingroup utility
|
||||
*/
|
||||
int _glfwIsPrintable(int key);
|
||||
GLFWbool _glfwIsPrintable(int key);
|
||||
|
||||
#endif // _glfw3_internal_h_
|
||||
|
|
|
@ -173,7 +173,7 @@ static GLFWbool pollJoystickEvents(_GLFWjoystickLinux* js)
|
|||
|
||||
// Initialize joystick interface
|
||||
//
|
||||
int _glfwInitJoysticksLinux(void)
|
||||
GLFWbool _glfwInitJoysticksLinux(void)
|
||||
{
|
||||
#if defined(__linux__)
|
||||
const char* dirname = "/dev/input";
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
//
|
||||
typedef struct _GLFWjoystickLinux
|
||||
{
|
||||
int present;
|
||||
GLFWbool present;
|
||||
int fd;
|
||||
float* axes;
|
||||
int axisCount;
|
||||
|
@ -61,7 +61,7 @@ typedef struct _GLFWjoylistLinux
|
|||
} _GLFWjoylistLinux;
|
||||
|
||||
|
||||
int _glfwInitJoysticksLinux(void);
|
||||
GLFWbool _glfwInitJoysticksLinux(void);
|
||||
void _glfwTerminateJoysticksLinux(void);
|
||||
|
||||
#endif // _glfw3_linux_joystick_h_
|
||||
|
|
|
@ -52,9 +52,9 @@ typedef struct _GLFWlibraryNSGL
|
|||
} _GLFWlibraryNSGL;
|
||||
|
||||
|
||||
int _glfwInitNSGL(void);
|
||||
GLFWbool _glfwInitNSGL(void);
|
||||
void _glfwTerminateNSGL(void);
|
||||
int _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig);
|
||||
void _glfwDestroyContextNSGL(_GLFWwindow* window);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
// Initialize OpenGL support
|
||||
//
|
||||
int _glfwInitNSGL(void)
|
||||
GLFWbool _glfwInitNSGL(void)
|
||||
{
|
||||
_glfw.nsgl.framework =
|
||||
CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl"));
|
||||
|
@ -55,7 +55,7 @@ void _glfwTerminateNSGL(void)
|
|||
|
||||
// Create the OpenGL context
|
||||
//
|
||||
int _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig)
|
||||
{
|
||||
|
|
|
@ -287,7 +287,7 @@ static GLFWbool isCompositionEnabled(void)
|
|||
|
||||
// Initialize WGL
|
||||
//
|
||||
int _glfwInitWGL(void)
|
||||
GLFWbool _glfwInitWGL(void)
|
||||
{
|
||||
_glfw.wgl.instance = LoadLibraryA("opengl32.dll");
|
||||
if (!_glfw.wgl.instance)
|
||||
|
@ -327,7 +327,7 @@ void _glfwTerminateWGL(void)
|
|||
|
||||
// Create the OpenGL or OpenGL ES context
|
||||
//
|
||||
int _glfwCreateContextWGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextWGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig)
|
||||
{
|
||||
|
|
|
@ -144,9 +144,9 @@ typedef struct _GLFWlibraryWGL
|
|||
} _GLFWlibraryWGL;
|
||||
|
||||
|
||||
int _glfwInitWGL(void);
|
||||
GLFWbool _glfwInitWGL(void);
|
||||
void _glfwTerminateWGL(void);
|
||||
int _glfwCreateContextWGL(_GLFWwindow* window,
|
||||
GLFWbool _glfwCreateContextWGL(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig);
|
||||
void _glfwDestroyContextWGL(_GLFWwindow* window);
|
||||
|
|
Loading…
Reference in New Issue
Block a user