CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 "csextern.h"
00023 
00024 #include "ivideo/graph3d.h"
00025 
00026 class csColor;
00027 struct iGraphics2D;
00028 struct iTextureManager;
00029 
00030 /*
00031  * Some full screen special effects.
00032  * Most need to be called, either during 2d drawing phase - between
00033  * the g2d->BeginDraw and FinishDraw calls, or they need to be called
00034  * in the 3d drawing phase, between the g3d->BeginDraw and FinishDraw calls.
00035  */
00036 
00047 CS_CSTOOL_EXPORT void csfxInterference (iGraphics2D *g2d, 
00048   iTextureManager *txtmgr, float amount, float anim, float length);
00049 
00056 CS_CSTOOL_EXPORT void csfxFadeOut (iGraphics3D *g3d, float fadevalue);
00057 
00063 CS_CSTOOL_EXPORT void csfxFadeTo (iGraphics3D *g3d, iMaterialHandle *mat, 
00064   float fadevalue);
00065 
00071 CS_CSTOOL_EXPORT void csfxFadeToColor (iGraphics3D *g3d, float fadevalue, 
00072   const csColor& color);
00073 
00079 CS_CSTOOL_EXPORT void csfxGreenScreen (iGraphics3D *g3d, float fadevalue);
00080 
00086 CS_CSTOOL_EXPORT void csfxRedScreen (iGraphics3D *g3d, float fadevalue);
00087 
00093 CS_CSTOOL_EXPORT void csfxBlueScreen (iGraphics3D *g3d, float fadevalue);
00094 
00100 CS_CSTOOL_EXPORT void csfxWhiteOut (iGraphics3D *g3d, float fadevalue);
00101 
00108 CS_CSTOOL_EXPORT void csfxShadeVert (iGraphics3D *g3d, const csColor& topcolor,
00109   const csColor& bottomcolor, uint mixmode = CS_FX_COPY);
00110 
00111 
00116 CS_CSTOOL_EXPORT void csfxScreenDPFX (iGraphics3D *g3d, iMaterialHandle *mat, 
00117   uint mixmode, uint8 r, uint8 g, uint8 b);
00118 
00123 CS_CSTOOL_EXPORT void csfxScreenDPFXPartial(iGraphics3D *g3d, int x, int y, 
00124   int w, int h, iMaterialHandle *mat, uint mixmode, uint8 r, uint8 g, uint8 b);
00125 
00126 #endif // __CS_CSFXSCR_H__
00127 

Generated for Crystal Space by doxygen 1.2.18