#include <halo.h>
Inheritance diagram for iHalo:
Public Methods | |
virtual int | GetWidth ()=0 |
Query halo width. | |
virtual int | GetHeight ()=0 |
Query halo height. | |
virtual void | SetColor (float &iR, float &iG, float &iB)=0 |
Change halo color. | |
virtual void | GetColor (float &oR, float &oG, float &oB)=0 |
Query halo color. | |
virtual void | Draw (float x, float y, float w, float h, float iIntensity, csVector2 *iVertices, int iVertCount)=0 |
Draw the halo given a center point and an intensity. More... |
This interface can be used as well for any scalable semi-transparent 2D sprites. The "halo" is really just an alpha map; the sprite is a single-colored rectangle with more or less transparent portions (depends on alpha map).
|
Draw the halo given a center point and an intensity. If either w and/or h is negative, the native width and/or height is used instead. If the halo should be clipped against some polygon, that polygon should be given, otherwise if a NULL pointer is passed, the halo is clipped just against screen bounds. |