
option expr32
option casemap:none

IFNDEF	gl_local_inc
gl_local_inc	EQU		1

; Begin of file .\gl_local.h
	INCLUDE	gl_model.inc

@proto_AMD7_333		TYPEDEF		PROTO STDCALL :PTR SDWORD, :PTR SDWORD, :PTR SDWORD, :PTR SDWORD
GL_BeginRendering		PROTO		@proto_AMD7_333

@proto_AMD7_334		TYPEDEF		PROTO STDCALL 
GL_EndRendering		PROTO		@proto_AMD7_334

@proto_AMD7_335		TYPEDEF		PROTO STDCALL 
GL_SetDefaultState		PROTO		@proto_AMD7_335

@proto_AMD7_336		TYPEDEF		PROTO STDCALL 
GL_UpdateSwapInterval		PROTO		@proto_AMD7_336

EXTERNDEF		C gldepthmin:REAL4

EXTERNDEF		C gldepthmax:REAL4

@tag_AMD7_68		STRUCT 1t
x		REAL4		?
y		REAL4		?
z		REAL4		?
s		REAL4		?
t		REAL4		?
r		REAL4		?
g		REAL4		?
b		REAL4		?
@tag_AMD7_68		ENDS

glvert_t		TYPEDEF		@tag_AMD7_68

@tag_AMD7_conInfo_s		STRUCT 1t
surface_width		REAL4		?
surface_height		REAL4		?
u		vec3_t		3t DUP (?)
v		vec3_t		3t DUP (?)
n		vec3_t		3t DUP (?)
origin		vec3_t		3t DUP (?)
onscreen		qboolean		?
alpha		REAL4		?
@tag_AMD7_conInfo_s		ENDS

conInfo_t		TYPEDEF		@tag_AMD7_conInfo_s

EXTERNDEF		C consoleInfo:conInfo_t

MAX_LBM_HEIGHT		EQU		480t
BACKFACE_EPSILON		TEXTEQU		<0.01>
EXTERNDEF		C gltextures:image_t

EXTERNDEF		C numgltextures:SDWORD

EXTERNDEF		C r_notexture:PTR image_t

EXTERNDEF		C r_particletexture:PTR image_t

EXTERNDEF		C r_specular:PTR image_t

EXTERNDEF		C r_envmap:PTR image_t

EXTERNDEF		C r_goldenvmap:PTR image_t

EXTERNDEF		C r_gogglesmap:PTR image_t

EXTERNDEF		C gl_drawflat:PTR cvar_t

EXTERNDEF		C r_solidcolors:REAL4

EXTERNDEF		C currententity:PTR entity_t

EXTERNDEF		C currentmodel:PTR model_t

EXTERNDEF		C r_visframecount:SDWORD

EXTERNDEF		C r_framecount:SDWORD

EXTERNDEF		C frustum:cplane_t

EXTERNDEF		C c_brush_polys:SDWORD

EXTERNDEF		C c_alias_polys:SDWORD

EXTERNDEF		C gl_filter_min:SDWORD

EXTERNDEF		C gl_filter_max:SDWORD

EXTERNDEF		C vup:vec3_t

EXTERNDEF		C vpn:vec3_t

EXTERNDEF		C vright:vec3_t

EXTERNDEF		C r_origin:vec3_t

EXTERNDEF		C r_newrefdef:refdef_t

EXTERNDEF		C r_viewcluster:SDWORD

EXTERNDEF		C r_viewcluster2:SDWORD

EXTERNDEF		C r_oldviewcluster:SDWORD

EXTERNDEF		C r_oldviewcluster2:SDWORD

EXTERNDEF		C r_norefresh:PTR cvar_t

EXTERNDEF		C r_lefthand:PTR cvar_t

EXTERNDEF		C r_drawentities:PTR cvar_t

EXTERNDEF		C r_drawworld:PTR cvar_t

EXTERNDEF		C r_speeds:PTR cvar_t

EXTERNDEF		C r_fullbright:PTR cvar_t

EXTERNDEF		C r_novis:PTR cvar_t

EXTERNDEF		C r_nocull:PTR cvar_t

EXTERNDEF		C r_lerpmodels:PTR cvar_t

EXTERNDEF		C r_lightlevel:PTR cvar_t

EXTERNDEF		C gl_vertex_arrays:PTR cvar_t

EXTERNDEF		C gl_ext_swapinterval:PTR cvar_t

EXTERNDEF		C gl_ext_palettedtexture:PTR cvar_t

EXTERNDEF		C gl_ext_multitexture:PTR cvar_t

EXTERNDEF		C gl_ext_pointparameters:PTR cvar_t

EXTERNDEF		C gl_ext_compiled_vertex_array:PTR cvar_t

EXTERNDEF		C gl_particle_min_size:PTR cvar_t

EXTERNDEF		C gl_particle_max_size:PTR cvar_t

EXTERNDEF		C gl_particle_size:PTR cvar_t

EXTERNDEF		C gl_particle_att_a:PTR cvar_t

EXTERNDEF		C gl_particle_att_b:PTR cvar_t

EXTERNDEF		C gl_particle_att_c:PTR cvar_t

EXTERNDEF		C gl_nosubimage:PTR cvar_t

EXTERNDEF		C gl_bitdepth:PTR cvar_t

EXTERNDEF		C gl_mode:PTR cvar_t

EXTERNDEF		C gl_log:PTR cvar_t

EXTERNDEF		C gl_lightmap:PTR cvar_t

EXTERNDEF		C gl_shadows:PTR cvar_t

EXTERNDEF		C gl_dynamic:PTR cvar_t

EXTERNDEF		C gl_monolightmap:PTR cvar_t

EXTERNDEF		C gl_nobind:PTR cvar_t

EXTERNDEF		C gl_round_down:PTR cvar_t

EXTERNDEF		C gl_picmip:PTR cvar_t

EXTERNDEF		C gl_skymip:PTR cvar_t

EXTERNDEF		C gl_showtris:PTR cvar_t

EXTERNDEF		C gl_finish:PTR cvar_t

EXTERNDEF		C gl_ztrick:PTR cvar_t

EXTERNDEF		C gl_clear:PTR cvar_t

EXTERNDEF		C gl_cull:PTR cvar_t

EXTERNDEF		C gl_poly:PTR cvar_t

EXTERNDEF		C gl_texsort:PTR cvar_t

EXTERNDEF		C gl_polyblend:PTR cvar_t

EXTERNDEF		C gl_flashblend:PTR cvar_t

EXTERNDEF		C gl_lightmaptype:PTR cvar_t

EXTERNDEF		C gl_modulate:PTR cvar_t

EXTERNDEF		C gl_playermip:PTR cvar_t

EXTERNDEF		C gl_drawbuffer:PTR cvar_t

EXTERNDEF		C gl_3dlabs_broken:PTR cvar_t

EXTERNDEF		C gl_driver:PTR cvar_t

EXTERNDEF		C gl_swapinterval:PTR cvar_t

EXTERNDEF		C gl_texturemode:PTR cvar_t

EXTERNDEF		C gl_texturealphamode:PTR cvar_t

EXTERNDEF		C gl_texturesolidmode:PTR cvar_t

EXTERNDEF		C gl_saturatelighting:PTR cvar_t

EXTERNDEF		C gl_lockpvs:PTR cvar_t

EXTERNDEF		C vid_fullscreen:PTR cvar_t

EXTERNDEF		C vid_gamma:PTR cvar_t

EXTERNDEF		C scr_shotname:PTR cvar_t

EXTERNDEF		C r_conchars:PTR cvar_t

EXTERNDEF		C r_condist:PTR cvar_t

EXTERNDEF		C r_conoffset:PTR cvar_t

EXTERNDEF		C r_conthresh:PTR cvar_t

EXTERNDEF		C r_detaildist:PTR cvar_t

EXTERNDEF		C r_detailthresh:PTR cvar_t

EXTERNDEF		C gl_skintexturemode:PTR cvar_t

EXTERNDEF		C gl_showents:PTR cvar_t

EXTERNDEF		C r_monolighting:PTR cvar_t

vec4_t		TYPEDEF		REAL4

EXTERNDEF		C s_lerped:vec4_t

EXTERNDEF		C gl_lightmap_format:SDWORD

EXTERNDEF		C gl_solid_format:SDWORD

EXTERNDEF		C gl_alpha_format:SDWORD

EXTERNDEF		C gl_tex_solid_format:SDWORD

EXTERNDEF		C gl_tex_alpha_format:SDWORD

EXTERNDEF		C c_visible_lightmaps:SDWORD

EXTERNDEF		C c_visible_textures:SDWORD

EXTERNDEF		C r_world_matrix:REAL4

@proto_AMD7_337		TYPEDEF		PROTO STDCALL :SDWORD
R_TranslatePlayerSkin		PROTO		@proto_AMD7_337

@proto_AMD7_338		TYPEDEF		PROTO STDCALL :SDWORD
GL_Bind		PROTO		@proto_AMD7_338

@proto_AMD7_339		TYPEDEF		PROTO STDCALL :PTR REAL4, :PTR REAL4, :qboolean
R_LightPoint		PROTO		@proto_AMD7_339

@proto_AMD7_340		TYPEDEF		PROTO STDCALL 
R_PushDlights		PROTO		@proto_AMD7_340

EXTERNDEF		C r_worldmodel:PTR model_t

EXTERNDEF		C d_8to24table:DWORD

EXTERNDEF		C registration_sequence:SDWORD

@proto_AMD7_341		TYPEDEF		PROTO STDCALL :REAL4, :REAL4, :REAL4, :REAL4, :PTR REAL4
V_AddBlend		PROTO		@proto_AMD7_341

@proto_AMD7_342		TYPEDEF		PROTO STDCALL :PTR , :PTR 
R_Init		PROTO		@proto_AMD7_342

@proto_AMD7_343		TYPEDEF		PROTO STDCALL 
R_Shutdown		PROTO		@proto_AMD7_343

@proto_AMD7_344		TYPEDEF		PROTO STDCALL :PTR refdef_t
R_RenderView		PROTO		@proto_AMD7_344

@proto_AMD7_345		TYPEDEF		PROTO STDCALL 
GL_ScreenShot_f		PROTO		@proto_AMD7_345

@proto_AMD7_346		TYPEDEF		PROTO STDCALL :PTR entity_t
R_DrawAliasModel		PROTO		@proto_AMD7_346

@proto_AMD7_347		TYPEDEF		PROTO STDCALL :PTR entity_t
R_DrawBrushModel		PROTO		@proto_AMD7_347

@proto_AMD7_348		TYPEDEF		PROTO STDCALL :PTR entity_t
R_DrawSpriteModel		PROTO		@proto_AMD7_348

@proto_AMD7_349		TYPEDEF		PROTO STDCALL :PTR entity_t
R_DrawBeam		PROTO		@proto_AMD7_349

@proto_AMD7_350		TYPEDEF		PROTO STDCALL :PTR msurface_t, :SDWORD, :PTR REAL4
R_DrawConsole		PROTO		@proto_AMD7_350

@proto_AMD7_351		TYPEDEF		PROTO STDCALL 
R_DrawWorld		PROTO		@proto_AMD7_351

@proto_AMD7_352		TYPEDEF		PROTO STDCALL 
R_RenderDlights		PROTO		@proto_AMD7_352

@proto_AMD7_353		TYPEDEF		PROTO STDCALL 
R_DrawAlphaSurfaces		PROTO		@proto_AMD7_353

@proto_AMD7_354		TYPEDEF		PROTO STDCALL :PTR msurface_t
R_RenderBrushPoly		PROTO		@proto_AMD7_354

@proto_AMD7_355		TYPEDEF		PROTO STDCALL 
R_InitParticleTexture		PROTO		@proto_AMD7_355

@proto_AMD7_356		TYPEDEF		PROTO STDCALL 
Draw_InitLocal		PROTO		@proto_AMD7_356

@proto_AMD7_357		TYPEDEF		PROTO STDCALL :PTR msurface_t
GL_SubdivideSurface		PROTO		@proto_AMD7_357

@proto_AMD7_358		TYPEDEF		PROTO STDCALL :PTR REAL4, :PTR REAL4
R_CullBox		PROTO		@proto_AMD7_358

@proto_AMD7_359		TYPEDEF		PROTO STDCALL :PTR entity_t
R_RotateForEntity		PROTO		@proto_AMD7_359

@proto_AMD7_360		TYPEDEF		PROTO STDCALL 
R_MarkLeaves		PROTO		@proto_AMD7_360

@proto_AMD7_361		TYPEDEF		PROTO STDCALL :PTR glpoly_t
WaterWarpPolyVerts		PROTO		@proto_AMD7_361

@proto_AMD7_362		TYPEDEF		PROTO STDCALL :PTR msurface_t
EmitWaterPolys		PROTO		@proto_AMD7_362

@proto_AMD7_363		TYPEDEF		PROTO STDCALL :PTR msurface_t
EmitWavyPolys		PROTO		@proto_AMD7_363

@proto_AMD7_364		TYPEDEF		PROTO STDCALL :PTR msurface_t
EmitWavySolidPolys		PROTO		@proto_AMD7_364

@proto_AMD7_365		TYPEDEF		PROTO STDCALL :PTR msurface_t
EmitSolidPolys		PROTO		@proto_AMD7_365

@proto_AMD7_366		TYPEDEF		PROTO STDCALL :PTR msurface_t
R_AddSkySurface		PROTO		@proto_AMD7_366

@proto_AMD7_367		TYPEDEF		PROTO STDCALL 
R_ClearSkyBox		PROTO		@proto_AMD7_367

@proto_AMD7_368		TYPEDEF		PROTO STDCALL 
R_DrawSkyBox		PROTO		@proto_AMD7_368

@proto_AMD7_369		TYPEDEF		PROTO STDCALL :PTR dlight_t, :SDWORD, :PTR mnode_t
R_MarkLights		PROTO		@proto_AMD7_369

@proto_AMD7_370		TYPEDEF		PROTO STDCALL :REAL4
R_BeginFrame		PROTO		@proto_AMD7_370

@proto_AMD7_371		TYPEDEF		PROTO STDCALL :SDWORD
R_SwapBuffers		PROTO		@proto_AMD7_371

@proto_AMD7_372		TYPEDEF		PROTO STDCALL :PTR BYTE
R_SetPalette		PROTO		@proto_AMD7_372

@proto_AMD7_373		TYPEDEF		PROTO STDCALL 
Draw_GetPalette		PROTO		@proto_AMD7_373

@proto_AMD7_374		TYPEDEF		PROTO STDCALL :PTR DWORD, :SDWORD, :SDWORD, :PTR DWORD, :SDWORD, :SDWORD
GL_ResampleTexture		PROTO		@proto_AMD7_374

@proto_AMD7_375		TYPEDEF		PROTO STDCALL :PTR SBYTE
GL_TextureMode		PROTO		@proto_AMD7_375

@proto_AMD7_376		TYPEDEF		PROTO STDCALL 
GL_ImageList_f		PROTO		@proto_AMD7_376

@proto_AMD7_377		TYPEDEF		PROTO STDCALL :PTR DWORD
GL_SetTexturePalette		PROTO		@proto_AMD7_377

@proto_AMD7_378		TYPEDEF		PROTO STDCALL 
GL_InitImages		PROTO		@proto_AMD7_378

@proto_AMD7_379		TYPEDEF		PROTO STDCALL 
GL_ShutdownImages		PROTO		@proto_AMD7_379

@proto_AMD7_380		TYPEDEF		PROTO STDCALL 
GL_FreeUnusedImages		PROTO		@proto_AMD7_380

@proto_AMD7_381		TYPEDEF		PROTO STDCALL :PTR SBYTE
GL_TextureAlphaMode		PROTO		@proto_AMD7_381

@proto_AMD7_382		TYPEDEF		PROTO STDCALL :PTR SBYTE
GL_TextureSolidMode		PROTO		@proto_AMD7_382

@proto_AMD7_383		TYPEDEF		PROTO STDCALL :PTR msurface_t, :REAL4, :REAL4, :PTR REAL4
R_GetSurfaceColorAtST		PROTO		@proto_AMD7_383

@proto_AMD7_384		TYPEDEF		PROTO STDCALL :PTR SBYTE
GL_SkinTextureMode		PROTO		@proto_AMD7_384

@proto_AMD7_385		TYPEDEF		PROTO STDCALL 
R_DrawTriangles		PROTO		@proto_AMD7_385

@proto_AMD7_386		TYPEDEF		PROTO STDCALL 
GL_LoadPortals		PROTO		@proto_AMD7_386

@proto_AMD7_387		TYPEDEF		PROTO STDCALL 
GL_DrawPortals		PROTO		@proto_AMD7_387

@proto_AMD7_388		TYPEDEF		PROTO STDCALL :PTR REAL4, :PTR REAL4, :SDWORD
R_BurnPoint		PROTO		@proto_AMD7_388

@proto_AMD7_389		TYPEDEF		PROTO STDCALL :PTR msurface_t
GL_UpdateLightmap		PROTO		@proto_AMD7_389

EXTERNDEF		C shared_palette_support:qboolean

EXTERNDEF		C ztrickframe:SDWORD

@proto_AMD7_390		TYPEDEF		PROTO STDCALL :PTR entity_t
R_GetNumFrames		PROTO		@proto_AMD7_390

@proto_AMD7_391		TYPEDEF		PROTO STDCALL :PTR model_t
SPR_RegisterSprite		PROTO		@proto_AMD7_391

@proto_AMD7_392		TYPEDEF		PROTO STDCALL 
Draw_BeginCinematic		PROTO		@proto_AMD7_392

@proto_AMD7_393		TYPEDEF		PROTO STDCALL 
Draw_EndCinematic		PROTO		@proto_AMD7_393

@proto_AMD7_394		TYPEDEF		PROTO STDCALL :SDWORD, :SDWORD, :SDWORD, :SDWORD, :SDWORD, :SDWORD, :SDWORD, :PTR WORD
Draw_CinematicFrame		PROTO		@proto_AMD7_394

@proto_AMD7_395		TYPEDEF		PROTO STDCALL 
GL_LoadPalFile_f		PROTO		@proto_AMD7_395

@proto_AMD7_396		TYPEDEF		PROTO STDCALL :SDWORD, :PTR @tag_AMD7_56
GL_DrawParticles		PROTO		@proto_AMD7_396

GL_RENDERER_VOODOO		EQU		000000001h
GL_RENDERER_VOODOO2		EQU		000000002h
GL_RENDERER_VOODOO_RUSH		EQU		000000004h
GL_RENDERER_BANSHEE		EQU		000000008h
GL_RENDERER_3DFX		EQU		00000000fh
GL_RENDERER_PCX1		EQU		000000010h
GL_RENDERER_PCX2		EQU		000000020h
GL_RENDERER_PMX		EQU		000000040h
GL_RENDERER_POWERVR		EQU		000000070h
GL_RENDERER_PERMEDIA2		EQU		000000100h
GL_RENDERER_GLINT_MX		EQU		000000200h
GL_RENDERER_GLINT_TX		EQU		000000400h
GL_RENDERER_3DLABS_MISC		EQU		000000800h
GL_RENDERER_3DLABS		EQU		000000f00h
GL_RENDERER_REALIZM		EQU		000001000h
GL_RENDERER_REALIZM2		EQU		000002000h
GL_RENDERER_INTERGRAPH		EQU		000003000h
GL_RENDERER_3DPRO		EQU		000004000h
GL_RENDERER_REAL3D		EQU		000008000h
GL_RENDERER_RIVA128		EQU		000010000h
GL_RENDERER_DYPIC		EQU		000020000h
GL_RENDERER_V1000		EQU		000040000h
GL_RENDERER_V2100		EQU		000080000h
GL_RENDERER_V2200		EQU		000100000h
GL_RENDERER_RENDITION		EQU		0001c0000h
GL_RENDERER_O2		EQU		000100000h
GL_RENDERER_IMPACT		EQU		000200000h
GL_RENDERER_RE		EQU		000400000h
GL_RENDERER_IR		EQU		000800000h
GL_RENDERER_SGI		EQU		000f00000h
GL_RENDERER_MCD		EQU		001000000h
GL_RENDERER_OTHER		EQU		080000000h
@t_AMD7_99		TYPEDEF		PTR SBYTE
@t_AMD7_100		TYPEDEF		PTR SBYTE
@t_AMD7_101		TYPEDEF		PTR SBYTE
@t_AMD7_102		TYPEDEF		PTR SBYTE
@tag_AMD7_69		STRUCT 1t
renderer		SDWORD		?
renderer_string		@t_AMD7_99		?
vendor_string		@t_AMD7_100		?
version_string		@t_AMD7_101		?
extensions_string		@t_AMD7_102		?
allow_cds		qboolean		?
@tag_AMD7_69		ENDS

glconfig_t		TYPEDEF		@tag_AMD7_69

@t_AMD7_103		TYPEDEF		PTR BYTE
@tag_AMD7_70		STRUCT 1t
inverse_intensity		REAL4		?
fullscreen		qboolean		?
prev_mode		SDWORD		?
d_16to8table		@t_AMD7_103		?
lightmap_textures		SDWORD		?
currenttextures		SDWORD		2t DUP (?)
currenttmu		SDWORD		?
camera_separation		REAL4		?
stereo_enabled		qboolean		?
gammaRamp		qboolean		?
@tag_AMD7_70		ENDS

glstate_t		TYPEDEF		@tag_AMD7_70

EXTERNDEF		C gl_config:glconfig_t

EXTERNDEF		C gl_state:glstate_t

@proto_AMD7_397		TYPEDEF		PROTO STDCALL :REAL4
GLimp_BeginFrame		PROTO		@proto_AMD7_397

@proto_AMD7_398		TYPEDEF		PROTO STDCALL 
GLimp_EndFrame		PROTO		@proto_AMD7_398

@proto_AMD7_399		TYPEDEF		PROTO STDCALL :PTR , :PTR 
GLimp_Init		PROTO		@proto_AMD7_399

@proto_AMD7_400		TYPEDEF		PROTO STDCALL 
GLimp_Shutdown		PROTO		@proto_AMD7_400

@proto_AMD7_401		TYPEDEF		PROTO STDCALL :PTR SDWORD, :PTR SDWORD, :SDWORD, :qboolean
GLimp_SetMode		PROTO		@proto_AMD7_401

@proto_AMD7_402		TYPEDEF		PROTO STDCALL :qboolean
GLimp_AppActivate		PROTO		@proto_AMD7_402

@proto_AMD7_403		TYPEDEF		PROTO STDCALL :qboolean
GLimp_EnableLogging		PROTO		@proto_AMD7_403

@proto_AMD7_404		TYPEDEF		PROTO STDCALL 
GLimp_LogNewFrame		PROTO		@proto_AMD7_404

; End of file .\gl_local.h

ENDIF

