FTEQW
Documentation of the FTE engine source tree.
gl_draw.h
Go to the documentation of this file.
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20
21// draw.h -- these are the only functions outside the refresh allowed
22// to touch the vid buffer
23
24void GLDraw_Init (void);
25void GLDraw_DeInit (void);
26void Surf_DeInit (void);
27
28void R2D_Init(void);
29mpic_t *R2D_SafeCachePic (const char *path);
30mpic_t *R2D_SafePicFromWad (const char *name);
31void R2D_ImageColours(float r, float g, float b, float a);
32void R2D_Image(float x, float y, float w, float h, float s1, float t1, float s2, float t2, mpic_t *pic);
33void R2D_Line(float x1, float y1, float x2, float y2, mpic_t *pic);
34void R2D_ScalePic (float x, float y, float width, float height, mpic_t *pic);
35void R2D_SubPic(float x, float y, float width, float height, mpic_t *pic, float srcx, float srcy, float srcwidth, float srcheight);
36void R2D_Letterbox(float sx, float sy, float sw, float sh, mpic_t *pic, float pw, float ph);
37void R2D_ConsoleBackground (int firstline, int lastline, qboolean forceopaque);
38void R2D_EditorBackground (void);
39void R2D_TileClear (float x, float y, float w, float h);
40void R2D_FadeScreen (void);
41void R2D_Init(void);
42void R2D_Shutdown(void);
43
44extern void (*R2D_Flush)(void); //if set, something is queued and must be flushed at some point. if its set to what you will set it to, then you can build onto your batch yourself.
45
46void R2D_PolyBlend (void);
47void R2D_BrightenScreen (void);
48
49void QDECL R2D_Conback_Callback(struct cvar_s *var, char *oldvalue);
qboolean
Definition: api_menu.h:34
unsigned int width
Definition: bymorphed.h:4
unsigned int height
Definition: bymorphed.h:5
void(QDECL *vgui_frame)(void)
void R2D_Image(float x, float y, float w, float h, float s1, float t1, float s2, float t2, mpic_t *pic)
Definition: r_2d.c:694
void GLDraw_DeInit(void)
Definition: gl_draw.c:596
void R2D_Shutdown(void)
Definition: r_2d.c:165
void Surf_DeInit(void)
Definition: r_surf.c:3309
void R2D_EditorBackground(void)
Definition: r_2d.c:989
void R2D_ImageColours(float r, float g, float b, float a)
Definition: r_2d.c:646
void GLDraw_Init(void)
Definition: gl_draw.c:516
mpic_t * R2D_SafePicFromWad(const char *name)
Definition: r_2d.c:488
void R2D_Init(void)
Definition: r_2d.c:237
void R2D_FadeScreen(void)
Definition: r_2d.c:1631
void R2D_ConsoleBackground(int firstline, int lastline, qboolean forceopaque)
Definition: r_2d.c:950
void QDECL R2D_Conback_Callback(struct cvar_s *var, char *oldvalue)
Definition: r_2d.c:1018
void R2D_PolyBlend(void)
Definition: r_2d.c:1489
void R2D_TileClear(float x, float y, float w, float h)
Definition: r_2d.c:1004
void R2D_SubPic(float x, float y, float width, float height, mpic_t *pic, float srcx, float srcy, float srcwidth, float srcheight)
Definition: r_2d.c:854
void R2D_ScalePic(float x, float y, float width, float height, mpic_t *pic)
Definition: r_2d.c:849
void(* R2D_Flush)(void)
Definition: r_2d.c:82
void R2D_BrightenScreen(void)
Definition: r_2d.c:1566
mpic_t * R2D_SafeCachePic(const char *path)
Definition: r_2d.c:478
void R2D_Line(float x1, float y1, float x2, float y2, mpic_t *pic)
void R2D_Letterbox(float sx, float sy, float sw, float sh, mpic_t *pic, float pw, float ph)
Definition: r_2d.c:867
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: gl_vidnt.c:848
static GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition: gl_vidnt.c:848
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
Definition: gl_vidnt.c:848
static GLuint GLfloat GLfloat GLfloat x1
Definition: gl_vidnt.c:848
GLdouble GLdouble GLdouble y2
Definition: glquake.h:938
GLfloat GLfloat y
Definition: glquake.h:158
GLdouble GLdouble x2
Definition: glquake.h:938
GLuint GLcharARB * name
Definition: glquake.h:155
GLfloat x
Definition: glquake.h:158
GLdouble GLdouble r
Definition: glquake.h:969
GLfloat GLfloat GLfloat GLfloat w
Definition: glquake.h:158
int b
Definition: pr_lua.c:242
const char * var
Definition: pr_lua.c:225
Definition: cvar.h:59
netadr_t a
Definition: sv_master.c:141