2012-05-05 20:06:34 -05:00
|
|
|
/**
|
|
|
|
* Powder Toy - particle graphics header
|
|
|
|
*
|
|
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2011-10-10 14:42:55 -05:00
|
|
|
#ifndef PGRAPHICS_H
|
|
|
|
#define PGRAPHICS_H
|
|
|
|
|
2011-11-12 14:44:15 -06:00
|
|
|
#define PMODE 0x00000FFF
|
|
|
|
#define PMODE_NONE 0x00000000
|
|
|
|
#define PMODE_FLAT 0x00000001
|
|
|
|
#define PMODE_BLOB 0x00000002
|
|
|
|
#define PMODE_BLUR 0x00000004
|
|
|
|
#define PMODE_GLOW 0x00000008
|
|
|
|
#define PMODE_SPARK 0x00000010
|
|
|
|
#define PMODE_FLARE 0x00000020
|
|
|
|
#define PMODE_LFLARE 0x00000040
|
|
|
|
#define PMODE_ADD 0x00000080
|
|
|
|
#define PMODE_BLEND 0x00000100
|
2011-10-23 07:52:26 -05:00
|
|
|
#define PSPEC_STICKMAN 0x00000200
|
|
|
|
|
2011-11-12 14:44:15 -06:00
|
|
|
#define OPTIONS 0x0000F000
|
|
|
|
#define NO_DECO 0x00001000
|
|
|
|
#define DECO_FIRE 0x00002000
|
2011-10-12 12:40:00 -05:00
|
|
|
|
2011-11-12 14:44:15 -06:00
|
|
|
#define FIREMODE 0x00FF0000
|
|
|
|
#define FIRE_ADD 0x00010000
|
|
|
|
#define FIRE_BLEND 0x00020000
|
2011-10-12 12:40:00 -05:00
|
|
|
|
|
|
|
#define EFFECT 0xFF000000
|
|
|
|
#define EFFECT_GRAVIN 0x01000000
|
|
|
|
#define EFFECT_GRAVOUT 0x02000000
|
2012-03-14 19:44:17 -05:00
|
|
|
#define EFFECT_LINES 0x04000000
|
2011-10-10 14:42:55 -05:00
|
|
|
|
2011-11-18 16:20:05 -06:00
|
|
|
#define RENDER_EFFE OPTIONS | PSPEC_STICKMAN | EFFECT | PMODE_SPARK | PMODE_FLARE | PMODE_LFLARE
|
2011-11-12 14:44:15 -06:00
|
|
|
#define RENDER_FIRE OPTIONS | PSPEC_STICKMAN | PMODE_FLAT | PMODE_ADD | PMODE_BLEND | FIREMODE
|
2011-11-18 16:20:05 -06:00
|
|
|
#define RENDER_GLOW OPTIONS | PSPEC_STICKMAN | PMODE_FLAT | PMODE_GLOW | PMODE_ADD | PMODE_BLEND
|
2011-11-12 14:44:15 -06:00
|
|
|
#define RENDER_BLUR OPTIONS | PSPEC_STICKMAN | PMODE_FLAT | PMODE_BLUR | PMODE_ADD | PMODE_BLEND
|
2011-11-16 19:02:30 -06:00
|
|
|
#define RENDER_BLOB OPTIONS | PSPEC_STICKMAN | PMODE_FLAT | PMODE_BLOB | PMODE_ADD | PMODE_BLEND
|
2011-11-12 14:44:15 -06:00
|
|
|
#define RENDER_BASC OPTIONS | PSPEC_STICKMAN | PMODE_FLAT | PMODE_ADD | PMODE_BLEND
|
|
|
|
#define RENDER_NONE OPTIONS | PSPEC_STICKMAN | PMODE_FLAT
|
|
|
|
|
|
|
|
#define COLOUR_HEAT 0x00000001
|
|
|
|
#define COLOUR_LIFE 0x00000002
|
2011-11-17 17:31:52 -06:00
|
|
|
#define COLOUR_GRAD 0x00000004
|
2012-02-25 16:29:43 -06:00
|
|
|
#define COLOUR_BASC 0x00000008
|
2011-11-12 14:44:15 -06:00
|
|
|
|
|
|
|
#define COLOUR_DEFAULT 0x00000000
|
|
|
|
|
|
|
|
#define DISPLAY_AIRC 0x00000001
|
|
|
|
#define DISPLAY_AIRP 0x00000002
|
|
|
|
#define DISPLAY_AIRV 0x00000004
|
|
|
|
#define DISPLAY_AIRH 0x00000008
|
|
|
|
#define DISPLAY_AIR 0x0000000F
|
|
|
|
#define DISPLAY_WARP 0x00000010
|
|
|
|
#define DISPLAY_PERS 0x00000020
|
2011-11-14 05:11:25 -06:00
|
|
|
#define DISPLAY_EFFE 0x00000040
|
2011-11-12 14:44:15 -06:00
|
|
|
|
2011-10-10 14:42:55 -05:00
|
|
|
#endif
|