arch/ogl/gr.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "hudmsg.h"
#include "game.h"
#include "text.h"
#include "gr.h"
#include "gamefont.h"
#include "grdef.h"
#include "palette.h"
#include "u_mem.h"
#include "error.h"
#include "inferno.h"
#include "screens.h"
#include "strutil.h"
#include "mono.h"
#include "args.h"
#include "key.h"
#include "ogl_init.h"
#include <GL/glu.h>

Classes

struct  TGA_header

Defines

#define DECLARE_VARS
#define GLstrcmptestr(a, b)   if (stricmp(a,#b)==0 || stricmp(a,"GL_" #b)==0)return GL_ ## b;
#define GL_BGR_EXT   0x80E0

Functions

void gr_palette_clear ()
int gr_check_fullscreen (void)
void gr_do_fullscreen (int f)
int gr_toggle_fullscreen (void)
int arch_toggle_fullscreen_menu (void)
void ogl_init_state (void)
void ogl_set_screen_mode (void)
void gr_update ()
void ogl_get_verinfo (void)
int gr_set_mode (u_int32_t mode)
int ogl_atotexfilti (char *a, int min)
int ogl_testneedmipmaps (int i)
int gr_init (int mode)
void gr_close ()
void ogl_upixelc (int x, int y, int c)
void ogl_urect (int left, int top, int right, int bot)
void ogl_ulinec (int left, int top, int right, int bot, int c)
void ogl_do_palfx (void)
void gr_palette_step_up (int r, int g, int b)
static int min (int x, int y)
void gr_palette_load (ubyte *pal)
int gr_palette_fade_out (ubyte *pal, int nsteps, int allow_keys)
int gr_palette_fade_in (ubyte *pal, int nsteps, int allow_keys)
void gr_palette_read (ubyte *pal)
void write_bmp (char *savename, int w, int h, unsigned char *buf)
void save_screen_shot (int automap_flag)

Variables

int ogl_voodoohack = 0
int gr_installed = 0
int gl_initialized = 0
int gl_reticle = 1
int ogl_fullscreen = 0
int last_screen_mode = -1
const char * gl_vendor
const char * gl_renderer
const char * gl_version
const char * gl_extensions
int r_upixelc
GLfloat last_r = 0
GLfloat last_g = 0
GLfloat last_b = 0
int do_pal_step = 0

Define Documentation

#define DECLARE_VARS
 

#define GL_BGR_EXT   0x80E0
 

#define GLstrcmptestr a,
 )     if (stricmp(a,#b)==0 || stricmp(a,"GL_" #b)==0)return GL_ ## b;
 


Function Documentation

int arch_toggle_fullscreen_menu void   ) 
 

int gr_check_fullscreen void   ) 
 

void gr_close void   ) 
 

void gr_do_fullscreen int  f  ) 
 

int gr_init int  mode  ) 
 

void gr_palette_clear  ) 
 

int gr_palette_fade_in ubyte pal,
int  nsteps,
int  allow_keys
 

int gr_palette_fade_out ubyte pal,
int  nsteps,
int  allow_keys
 

void gr_palette_load ubyte pal  ) 
 

void gr_palette_read ubyte pal  ) 
 

void gr_palette_step_up int  r,
int  g,
int  b
 

int gr_set_mode u_int32_t  mode  ) 
 

int gr_toggle_fullscreen void   ) 
 

void gr_update  ) 
 

static int min int  x,
int  y
[inline, static]
 

int ogl_atotexfilti char *  a,
int  min
 

void ogl_do_palfx void   ) 
 

void ogl_get_verinfo void   ) 
 

void ogl_init_state void   ) 
 

void ogl_set_screen_mode void   ) 
 

int ogl_testneedmipmaps int  i  ) 
 

void ogl_ulinec int  left,
int  top,
int  right,
int  bot,
int  c
 

void ogl_upixelc int  x,
int  y,
int  c
 

void ogl_urect int  left,
int  top,
int  right,
int  bot
 

void save_screen_shot int  automap_flag  ) 
 

void write_bmp char *  savename,
int  w,
int  h,
unsigned char *  buf
 


Variable Documentation

int do_pal_step = 0
 

const char * gl_extensions
 

int gl_initialized = 0
 

const char * gl_renderer
 

int gl_reticle = 1
 

const char* gl_vendor
 

const char * gl_version
 

int gr_installed = 0
 

GLfloat last_b = 0
 

GLfloat last_g = 0
 

GLfloat last_r = 0
 

int last_screen_mode = -1
 

int ogl_fullscreen = 0
 

int ogl_voodoohack = 0
 

int r_upixelc
 


Generated on Mon Aug 28 20:55:30 2006 for D1X-Rebirth by  doxygen 1.4.6