mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
ce4bb1d56c
This has the advantage of getting entity_t out of the particle system, and much easier to read math. Also, it served as a nice test for my particle physics shaders (implemented the ideas in C). There's a lot of code that needs merging down: all but the actual drawing can be merged. There's some weirdness with color ramps, but I'll look into that later.
103 lines
2.8 KiB
C
103 lines
2.8 KiB
C
/*
|
|
d_ifacea.h
|
|
|
|
Include file for asm driver interface
|
|
|
|
Copyright (C) 1996-1997 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.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef _D_IFACEA_H
|
|
#define _D_IFACEA_H
|
|
|
|
//
|
|
// !!! 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 !!!
|
|
#define ALIAS_ONSEAM 0x0020
|
|
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define TURB_TEX_SIZE 64 // base turbulent texture size
|
|
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define CYCLE 128
|
|
|
|
// !!! if this is changed, it must be changed in r_shared.h too !!!
|
|
#define MAXHEIGHT 4096
|
|
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define CACHE_SIZE 32 // used to align key data structures
|
|
|
|
// particle_t structure
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define pt_pos 0
|
|
#define pt_vel 16
|
|
#define pt_color 32
|
|
#define pt_alpha 44
|
|
#define pt_tex 48
|
|
#define pt_ramp 52
|
|
#define pt_scale 56
|
|
#define pt_live 60
|
|
#define pt_size 64
|
|
|
|
#define PARTICLE_Z_CLIP 8.0
|
|
|
|
// finalvert_t structure
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define fv_v 0 // !!! if this is moved, cases where the !!!
|
|
// !!! address of this field is pushed in !!!
|
|
// !!! d_polysa.s must be changed !!!
|
|
#define fv_flags 24
|
|
#define fv_reserved 28
|
|
#define fv_size 32
|
|
#define fv_shift 5
|
|
|
|
|
|
// stvert_t structure
|
|
// !!! if this is changed, it must be changed in modelgen.h too !!!
|
|
#define stv_onseam 0
|
|
#define stv_s 4
|
|
#define stv_t 8
|
|
#define stv_size 12
|
|
|
|
|
|
// trivertx_t structure
|
|
// !!! if this is changed, it must be changed in modelgen.h too !!!
|
|
#define tv_v 0
|
|
#define tv_lightnormalindex 3
|
|
#define tv_size 4
|
|
|
|
// affinetridesc_t structure
|
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
|
#define atd_pskin 0
|
|
#define atd_skinwidth 4
|
|
#define atd_skinheight 8
|
|
#define atd_ptriangles 12
|
|
#define atd_pfinalverts 16
|
|
#define atd_numtriangles 20
|
|
#define atd_drawtype 24
|
|
#define atd_seamfixupX16 28
|
|
#define atd_size 32
|
|
|
|
#endif // _D_IFACE_H
|
|
|