Initial implementation of experimental gamma ramp API.

This commit is contained in:
Camilla Berglund
2010-10-13 04:04:43 +02:00
parent ffba674dbf
commit 2630d4968c
16 changed files with 647 additions and 31 deletions
+13 -5
View File
@@ -215,12 +215,16 @@ struct _GLFWwindow
//------------------------------------------------------------------------
struct _GLFWlibrary
{
_GLFWhints hints;
_GLFWhints hints;
_GLFWwindow* windowListHead;
_GLFWwindow* currentWindow;
_GLFWwindow* activeWindow;
_GLFWwindow* cursorLockWindow;
_GLFWwindow* windowListHead;
_GLFWwindow* currentWindow;
_GLFWwindow* activeWindow;
_GLFWwindow* cursorLockWindow;
GLFWgammaramp currentRamp;
GLFWgammaramp originalRamp;
int originalRampSize;
_GLFW_PLATFORM_LIBRARY_STATE;
};
@@ -257,6 +261,10 @@ void _glfwPlatformDisableSystemKeys(_GLFWwindow* window);
int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount);
void _glfwPlatformGetDesktopMode(GLFWvidmode* mode);
// Gamma ramp
void _glfwPlatformSaveGammaRamp(void);
void _glfwPlatformSetGammaRamp(const GLFWgammaramp* ramp);
// Joystick
int _glfwPlatformGetJoystickParam(int joy, int param);
int _glfwPlatformGetJoystickPos(int joy, float* pos, int numaxes);