FIFE
2008.0
|
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the quadtree after all ) More...
Enumerations | |
enum | SoundPositionType |
enum | CommandType |
enum | EventSourceType |
enum | PathingStrategy |
enum | MouseCursorType |
enum | NativeCursor |
Functions | |
unsigned int | scaleTime (float multiplier, unsigned int ticks) |
std::ostream & | operator<< (std::ostream &os, const Location &l) |
FIFE_EXCEPTION_DECL (OutOfMemory,"Buy more ram ;)") | |
int | getIndexByAngle (int angle, const type_angle2id &angle2id, int &closestMatchingAngle) |
int | getAngleBetween (const Location &loc1, const Location &loc2) |
unsigned | nextPow2 (unsigned x) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Matrix< T > &m) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const PointType2D< T > &p) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const PointType3D< T > &p) |
Point | doublePt2intPt (DoublePoint pt) |
Point3D | doublePt2intPt (DoublePoint3D pt) |
DoublePoint | intPt2doublePt (Point pt) |
DoublePoint3D | intPt2doublePt (Point3D pt) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const RectType< T > &r) |
void | SDL_BlendRow_RGBA8_to_RGBA8 (const unsigned char *src, unsigned char *dst, unsigned int alpha, int n) |
void | SDL_BlendRow_RGBA8_to_RGB8 (const unsigned char *src, unsigned char *dst, unsigned int alpha, int n) |
void | SDL_BlendRow_RGBA8_to_RGB565 (const unsigned char *src, unsigned char *dst, unsigned int alpha, int n) |
void | SDL_BlendRow_RGBA4_to_RGB565 (const unsigned char *src, unsigned char *dst, unsigned int alpha, int n) |
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the quadtree after all )
enum FIFE::CommandType |
Types for different commands
Definition at line 40 of file ec_commandids.h.
Types for different event sources
Definition at line 41 of file ec_eventsourcetypes.h.
enum FIFE::NativeCursor |
Defines some common native cursors between platforms. In addition to these, you can use the values in: Windows: http://msdn.microsoft.com/en-us/library/ms648391(VS.85).aspx X11: http://fife.pastebin.com/f5b89dd6b
Defines how pathing can be performed on this layer
CELL_EDGES_ONLY allows pather to use only cell edges when moving instances from cell to cell on map CELL_EDGES_AND_DIAGONALS allows pather to use both cell edges and diagonals when moving instances from cell to cell on map FREEFORM allows pather to find shortest route regardless of cellgrid used on the layer
Different types of audio-file positions
Definition at line 44 of file soundclip.h.
|
inline |
Convert from 2D double point to 2D int point
Definition at line 314 of file point.h.
Referenced by FIFE::Camera::toScreenCoordinates().
|
inline |
FIFE::FIFE_EXCEPTION_DECL | ( | OutOfMemory | , |
"Buy more ram ; | |||
) |
std::string
might fail, resulting in terminate.
|
inline |
int FIFE::getIndexByAngle | ( | int | angle, |
const type_angle2id & | angle2id, | ||
int & | closestMatchingAngle | ||
) |
Returns id for given angle from angle2id map in case there are no elements in the map, negative value is returned
Definition at line 34 of file angles.cpp.
Referenced by FIFE::ActionVisual::getAnimationIndexByAngle(), FIFE::ObjectVisual::getClosestMatchingAngle(), and FIFE::ObjectVisual::getStaticImageIndexByAngle().
|
inline |
Convert from 2D int point to 2D double point
Definition at line 328 of file point.h.
Referenced by FIFE::Camera::toMapCoordinates().
|
inline |
|
inline |
Returns the next higher power of 2 based on the passed argument
Definition at line 286 of file fife_math.h.
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const RectType< T > & | r | ||
) |
std::ostream & FIFE::operator<< | ( | std::ostream & | , |
const Location & | |||
) |
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const PointType2D< T > & | p | ||
) |
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const PointType3D< T > & | p | ||
) |
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const Matrix< T > & | m | ||
) |
unsigned int FIFE::scaleTime | ( | float | multiplier, |
unsigned int | ticks | ||
) |
Utility function to calculate time scaling. Mostly done to avoid littering other code with related casting
Definition at line 73 of file timeprovider.cpp.
void FIFE::SDL_BlendRow_RGBA4_to_RGB565 | ( | const unsigned char * | src, |
unsigned char * | dst, | ||
unsigned int | alpha, | ||
int | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
< upgrade to range 0-255
multiplying by alpha resulted in shift.
Definition at line 102 of file sdlblendingfunctions.cpp.
void FIFE::SDL_BlendRow_RGBA8_to_RGB565 | ( | const unsigned char * | src, |
unsigned char * | dst, | ||
unsigned int | alpha, | ||
int | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 79 of file sdlblendingfunctions.cpp.
void FIFE::SDL_BlendRow_RGBA8_to_RGB8 | ( | const unsigned char * | src, |
unsigned char * | dst, | ||
unsigned int | alpha, | ||
int | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 61 of file sdlblendingfunctions.cpp.
void FIFE::SDL_BlendRow_RGBA8_to_RGBA8 | ( | const unsigned char * | src, |
unsigned char * | dst, | ||
unsigned int | alpha, | ||
int | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 42 of file sdlblendingfunctions.cpp.