Moved the majority of GLX code into opengl module.

This commit is contained in:
Camilla Berglund
2012-04-23 12:48:57 +02:00
parent 1a99827432
commit 49dfbe86b2
3 changed files with 558 additions and 519 deletions
+6 -1
View File
@@ -113,7 +113,6 @@ typedef intptr_t GLFWintptr;
//------------------------------------------------------------------------
typedef struct _GLFWcontextGLX
{
GLXFBConfigID fbconfigID; // ID of selected GLXFBConfig
GLXContext context; // OpenGL rendering context
XVisualInfo* visual; // Visual for selected GLXFBConfig
@@ -283,6 +282,12 @@ GLFWGLOBAL struct {
// Time
void _glfwInitTimer(void);
// OpenGL support
int _glfwCreateContext(_GLFWwindow* window,
const _GLFWwndconfig* wndconfig,
const _GLFWfbconfig* fbconfig);
void _glfwDestroyContext(_GLFWwindow* window);
// Fullscreen support
int _glfwGetClosestVideoMode(int* width, int* height, int* rate);
void _glfwSetVideoModeMODE(int mode, int rate);