FreeBASIC  0.91.0
gfx_opengl.c File Reference
#include "fb_gfx.h"
#include "fb_gfx_gl.h"
Include dependency graph for gfx_opengl.c:

Go to the source code of this file.

Macros

#define FBGL_TEXTURE   0x1
 
#define FBGL_BLEND   0x2
 
#define GL_BGRA   0x80E1
 

Functions

static int next_pow2 (int n)
 
FBCALL void * fb_GfxGetGLProcAddress (const char *proc)
 
int fb_hGL_ExtensionSupported (const char *extension)
 
void fb_hGL_SetState (int state)
 
GLuint fb_hGL_ImageCreate (PUT_HEADER *image, unsigned int color)
 
void fb_hGL_ImageDestroy (GLuint id)
 
void fb_hGL_NormalizeParameters (int gl_options)
 
int fb_hGL_Init (FB_DYLIB lib, char *os_extensions)
 
void fb_hGL_SetupProjection (void)
 

Variables

FB_GL __fb_gl
 
FB_GL_PARAMS __fb_gl_params = { 0 }
 

Macro Definition Documentation

#define FBGL_BLEND   0x2

Definition at line 17 of file gfx_opengl.c.

#define FBGL_TEXTURE   0x1

Definition at line 16 of file gfx_opengl.c.

#define GL_BGRA   0x80E1

Definition at line 20 of file gfx_opengl.c.

Function Documentation

FBCALL void* fb_GfxGetGLProcAddress ( const char *  proc)

Definition at line 38 of file gfx_opengl.c.

Here is the call graph for this function:

int fb_hGL_ExtensionSupported ( const char *  extension)

Definition at line 45 of file gfx_opengl.c.

Here is the caller graph for this function:

GLuint fb_hGL_ImageCreate ( PUT_HEADER image,
unsigned int  color 
)

Definition at line 77 of file gfx_opengl.c.

Here is the call graph for this function:

void fb_hGL_ImageDestroy ( GLuint  id)

Definition at line 95 of file gfx_opengl.c.

int fb_hGL_Init ( FB_DYLIB  lib,
char *  os_extensions 
)

Definition at line 158 of file gfx_opengl.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hGL_NormalizeParameters ( int  gl_options)

Definition at line 100 of file gfx_opengl.c.

Here is the caller graph for this function:

void fb_hGL_SetState ( int  state)

Definition at line 60 of file gfx_opengl.c.

void fb_hGL_SetupProjection ( void  )

Definition at line 184 of file gfx_opengl.c.

static int next_pow2 ( int  n)
static

Definition at line 26 of file gfx_opengl.c.

Here is the caller graph for this function:

Variable Documentation

FB_GL __fb_gl

Definition at line 23 of file gfx_opengl.c.

FB_GL_PARAMS __fb_gl_params = { 0 }

Definition at line 24 of file gfx_opengl.c.