FreeBASIC  0.91.0
gfx_driver_opengl_x11.c File Reference
#include "../fb_gfx.h"
#include "fb_gfx_x11.h"
#include "../fb_gfx_gl.h"
#include <GL/glx.h>
Include dependency graph for gfx_driver_opengl_x11.c:

Go to the source code of this file.

Data Structures

struct  GLXFUNCS
 

Macros

#define GLX_SAMPLE_BUFFERS_ARB   100000
 
#define GLX_SAMPLES_ARB   100001
 

Typedefs

typedef XVisualInfo *(* GLXCHOOSEVISUAL )(Display *, int, int *)
 
typedef GLXContext(* GLXCREATECONTEXT )(Display *, XVisualInfo *, GLXContext, int)
 
typedef void(* GLXDESTROYCONTEXT )(Display *, GLXContext)
 
typedef int(* GLXMAKECURRENT )(Display *, GLXDrawable, GLXContext)
 
typedef void(* GLXSWAPBUFFERS )(Display *, GLXDrawable)
 

Functions

static int driver_init (char *title, int w, int h, int depth, int refresh_rate, int flags)
 
static void driver_exit (void)
 
static void driver_flip (void)
 
void * fb_hGL_GetProcAddress (const char *proc)
 
static int opengl_window_init (void)
 
static void opengl_window_exit (void)
 
static void opengl_window_update (void)
 

Variables

GFXDRIVER fb_gfxDriverOpenGL
 
static FB_DYLIB gl_lib = NULL
 
static GLXFUNCS __fb_glX = { NULL }
 
static GLXContext context
 

Macro Definition Documentation

#define GLX_SAMPLE_BUFFERS_ARB   100000

Definition at line 13 of file gfx_driver_opengl_x11.c.

#define GLX_SAMPLES_ARB   100001

Definition at line 16 of file gfx_driver_opengl_x11.c.

Typedef Documentation

typedef XVisualInfo*(* GLXCHOOSEVISUAL)(Display *, int, int *)

Definition at line 42 of file gfx_driver_opengl_x11.c.

typedef GLXContext(* GLXCREATECONTEXT)(Display *, XVisualInfo *, GLXContext, int)

Definition at line 43 of file gfx_driver_opengl_x11.c.

typedef void(* GLXDESTROYCONTEXT)(Display *, GLXContext)

Definition at line 44 of file gfx_driver_opengl_x11.c.

typedef int(* GLXMAKECURRENT)(Display *, GLXDrawable, GLXContext)

Definition at line 45 of file gfx_driver_opengl_x11.c.

typedef void(* GLXSWAPBUFFERS)(Display *, GLXDrawable)

Definition at line 46 of file gfx_driver_opengl_x11.c.

Function Documentation

static void driver_exit ( void  )
static

Definition at line 225 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

static void driver_flip ( void  )
static

Definition at line 236 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

static int driver_init ( char *  title,
int  w,
int  h,
int  depth,
int  refresh_rate,
int  flags 
)
static

Definition at line 125 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

void* fb_hGL_GetProcAddress ( const char *  proc)

Definition at line 60 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

static void opengl_window_exit ( void  )
static

Definition at line 103 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int opengl_window_init ( void  )
static

Definition at line 70 of file gfx_driver_opengl_x11.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void opengl_window_update ( void  )
static

Definition at line 121 of file gfx_driver_opengl_x11.c.

Here is the caller graph for this function:

Variable Documentation

GLXFUNCS __fb_glX = { NULL }
static

Definition at line 57 of file gfx_driver_opengl_x11.c.

GLXContext context
static

Definition at line 58 of file gfx_driver_opengl_x11.c.

FB_DYLIB gl_lib = NULL
static

Definition at line 56 of file gfx_driver_opengl_x11.c.