FreeBASIC  1.08.1
About: FreeBasic is a set of cross-platform development tools consisting of a compiler, GNU-based assembler, linker and archiver, and supporting runtime libraries, including a software-based graphics library.
  Fossies Dox: FreeBASIC-1.08.1-source.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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)
  More...
 
static void driver_exit (void)
  More...
 
static void driver_flip (void)
  More...
 
void * fb_hGL_GetProcAddress (const char *proc)
 
static int opengl_window_init (void)
  More...
 
static void opengl_window_exit (void)
  More...
 
static void opengl_window_idle (void)
  More...
 
static void opengl_window_update (void)
  More...
 

Variables

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

Variable Documentation

◆ __fb_glX

GLXFUNCS __fb_glX = { NULL, NULL, NULL, NULL, NULL }
static

◆ context

◆ fb_gfxDriverOpenGL

GFXDRIVER fb_gfxDriverOpenGL
Initial value:
=
{
"OpenGL",
}
#define NULL
Definition: fb.h:25
void fb_hGL_SetPalette(int index, int r, int g, int b)
Definition: gfx_opengl.c:245
void fb_hX11SetMouse(int x, int y, int cursor, int clip)
Definition: gfx_x11.c:716
void fb_hX11SetWindowTitle(char *title)
Definition: gfx_x11.c:759
int fb_hX11GetMouse(int *x, int *y, int *z, int *buttons, int *clip)
Definition: gfx_x11.c:689
void fb_hX11Unlock(void)
Definition: gfx_x11.c:664
int fb_hX11SetWindowPos(int x, int y)
Definition: gfx_x11.c:768
void fb_hX11Lock(void)
Definition: gfx_x11.c:658
void fb_hX11WaitVSync(void)
Definition: gfx_x11.c:684
int * fb_hX11FetchModes(int depth, int *size)
Definition: gfx_x11.c:812
static int driver_init(char *title, int w, int h, int depth, int refresh_rate, int flags)
static void driver_flip(void)
static void driver_exit(void)

Definition at line 23 of file gfx_driver_opengl_x11.c.

◆ gl_lib

FB_DYLIB gl_lib = NULL
static

Definition at line 56 of file gfx_driver_opengl_x11.c.

Referenced by driver_exit(), driver_init(), and fb_hGL_GetProcAddress().