Macros | Functions | Variables
gl3w.c File Reference
#include <GL/gl3w.h>
#include <stdlib.h>
#include <dlfcn.h>
Include dependency graph for gl3w.c:

Go to the source code of this file.

Macros

#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 

Functions

static void close_libgl (void)
 
static GL3WglProc get_proc (const char *proc)
 
GL3WglProc gl3wGetProcAddress (const char *proc)
 
int gl3wInit (void)
 
int gl3wInit2 (GL3WGetProcAddressProc proc)
 
int gl3wIsSupported (int major, int minor)
 
static void load_procs (GL3WGetProcAddressProc proc)
 
static int open_libgl (void)
 
static int parse_version (void)
 

Variables

union GL3WProcs gl3wProcs
 
static GL3WglProc(* glx_get_proc_address )(const GLubyte *)
 
static voidlibgl
 
static const char * proc_names []
 
struct {
   int   major
 
   int   minor
 
version
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 32 of file gl3w.c.

Function Documentation

◆ close_libgl()

static void close_libgl ( void  )
static

Definition at line 110 of file gl3w.c.

◆ get_proc()

static GL3WglProc get_proc ( const char *  proc)
static

Definition at line 115 of file gl3w.c.

◆ gl3wGetProcAddress()

GL3WglProc gl3wGetProcAddress ( const char *  proc)

Definition at line 172 of file gl3w.c.

◆ gl3wInit()

int gl3wInit ( void  )

Definition at line 145 of file gl3w.c.

◆ gl3wInit2()

int gl3wInit2 ( GL3WGetProcAddressProc  proc)

Definition at line 157 of file gl3w.c.

◆ gl3wIsSupported()

int gl3wIsSupported ( int  major,
int  minor 
)

Definition at line 163 of file gl3w.c.

◆ load_procs()

static void load_procs ( GL3WGetProcAddressProc  proc)
static

Definition at line 841 of file gl3w.c.

◆ open_libgl()

static int open_libgl ( void  )
static

Definition at line 100 of file gl3w.c.

◆ parse_version()

static int parse_version ( void  )
static

Definition at line 130 of file gl3w.c.

Variable Documentation

◆ gl3wProcs

union GL3WProcs gl3wProcs

Definition at line 839 of file gl3w.c.

◆ glx_get_proc_address

GL3WglProc(* glx_get_proc_address) (const GLubyte *)
static

Definition at line 98 of file gl3w.c.

◆ libgl

void* libgl
static

Definition at line 97 of file gl3w.c.

◆ major

int major

Definition at line 127 of file gl3w.c.

◆ minor

int minor

Definition at line 127 of file gl3w.c.

◆ proc_names

const char* proc_names[]
static

Definition at line 177 of file gl3w.c.

◆ version

struct { ... } version


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20