📄 d_if_inc.pas
字号:
{----------------------------------------------------------------------------}
{ }
{ File(s): d_if.inc }
{ }
{ Initial conversion by : Carl Kenner (carl_kenner@hotmail.com) }
{ Initial conversion on : 15-Feb-2002 }
{ }
{ This File contains part of convertion of Quake2 source to ObjectPascal. }
{ More information about this project can be found at: }
{ http://www.sulaco.co.za/quake2/ }
{ }
{ Copyright (C) 1997-2001 Id Software, Inc. }
{ }
{ This program is free software; you can redistribute it and/or }
{ modify it under the terms of the GNU General Public License }
{ as published by the Free Software Foundation; either version 2 }
{ of the License, or (at your option) any later version. }
{ }
{ This program is distributed in the hope that it will be useful, }
{ but WITHOUT ANY WARRANTY; without even the implied warranty of }
{ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. }
{ }
{ See the GNU General Public License for more details. }
{ }
{----------------------------------------------------------------------------}
{ Updated on : }
{ Updated by : }
{ }
{----------------------------------------------------------------------------}
{ * Still dependent (to compile correctly) on: }
{ Nothing!!! }
{ But these values should match the ones in the converted H files mentioned }
{ in the comments in the code below }
{ }
{----------------------------------------------------------------------------}
{ * TODO: }
{ Nothing!!! }
{----------------------------------------------------------------------------}
unit d_if_inc;
interface
//
// d_ifacea.h
//
// Include file for asm driver interface.
//
//
// !!! note that this file must match the corresponding C structures in
// d_iface.h at all times !!!
//
// !!! if this is changed, it must be changed in r_shared.h too !!!
const
ALIAS_ONSEAM = $00020;
// !!! if this is changed, it must be changed in d_iface.h too !!!
TURB_TEX_SIZE = 64;
// !!! if this is changed, it must be changed in d_iface.h too !!!
CYCLE = 128;
// !!! if this is changed, it must be changed in r_shared.h too !!!
MAXHEIGHT = 1024;
// !!! if this is changed, it must be changed in quakedef.h too !!!
CACHE_SIZE = 32;
// particle_t structure
// !!! if this is changed, it must be changed in d_iface.h too !!!
// driver-usable fields
pt_org = 0;
pt_color = 12;
// drivers never touch the following fields
pt_next = 16;
pt_vel = 20;
pt_ramp = 32;
pt_die = 36;
pt_type = 40;
pt_size = 44;
PARTICLE_Z_CLIP = 8.0;
// finalvert_t structure
// !!! if this is changed, it must be changed in d_iface.h too !!!
fv_v = 0; // !!! if this is moved, cases where the !!!
// !!! address of this field is pushed in !!!
// !!! d_polysa.s must be changed !!!
fv_flags = 24;
fv_reserved = 28;
fv_size = 32;
fv_shift = 5;
// stvert_t structure
// !!! if this is changed, it must be changed in modelgen.h too !!!
stv_onseam = 0;
stv_s = 4;
stv_t = 8;
stv_size = 12;
// trivertx_t structure
// !!! if this is changed, it must be changed in modelgen.h too !!!
tv_v = 0;
tv_lightnormalindex = 3;
tv_size = 4;
// affinetridesc_t structure
// !!! if this is changed, it must be changed in d_iface.h too !!!
atd_pskin = 0;
atd_pskindesc = 4;
atd_skinwidth = 8;
atd_skinheight = 12;
atd_ptriangles = 16;
atd_pfinalverts = 20;
atd_numtriangles = 24;
atd_drawtype = 28;
atd_seamfixupX16 = 32;
atd_do_vis_thresh = 36;
atd_vis_thresh = 40;
atd_size = 44;
implementation
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -