cstool/csfxscr.h
00001 /* 00002 Copyright (C) 2001 by W.C.A. Wijngaards 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CS_CSFXSCR_H__ 00020 #define __CS_CSFXSCR_H__ 00021 00022 #include "ivideo/graph3d.h" 00023 00024 class csColor; 00025 struct iGraphics2D; 00026 struct iTextureManager; 00027 00028 /* 00029 * Some full screen special effects. 00030 * Most need to be called, either during 2d drawing phase - between 00031 * the g2d->BeginDraw and FinishDraw calls, or they need to be called 00032 * in the 3d drawing phase, between the g3d->BeginDraw and FinishDraw calls. 00033 */ 00034 00045 void csfxInterference (iGraphics2D *g2d, iTextureManager *txtmgr, 00046 float amount, float anim, float length); 00047 00054 void csfxFadeOut (iGraphics3D *g3d, float fadevalue); 00055 00061 void csfxFadeTo (iGraphics3D *g3d, iMaterialHandle *mat, float fadevalue); 00062 00068 void csfxFadeToColor (iGraphics3D *g3d, float fadevalue, const csColor& color); 00069 00075 void csfxGreenScreen (iGraphics3D *g3d, float fadevalue); 00076 00082 void csfxRedScreen (iGraphics3D *g3d, float fadevalue); 00083 00089 void csfxBlueScreen (iGraphics3D *g3d, float fadevalue); 00090 00096 void csfxWhiteOut (iGraphics3D *g3d, float fadevalue); 00097 00104 void csfxShadeVert (iGraphics3D *g3d, const csColor& topcolor, 00105 const csColor& bottomcolor, uint mixmode = CS_FX_COPY); 00106 00107 00112 void csfxScreenDPFX (iGraphics3D *g3d, iMaterialHandle *mat, uint mixmode, 00113 uint8 r, uint8 g, uint8 b); 00114 00119 void csfxScreenDPFXPartial(iGraphics3D *g3d, int x, int y, int w, int h, 00120 iMaterialHandle *mat, uint mixmode, uint8 r, uint8 g, uint8 b); 00121 00122 #endif // __CS_CSFXSCR_H__ 00123
Generated for Crystal Space by doxygen 1.2.18