Namespace Frog

Structs

InputDevice::KeyList

Surface::LockInfo

PixelShader

 

Classes

Game

DisplayDevice

InputDevice

PocketPC

Point

Rasterizer

Rect

Surface

 

Typedefs

typedef uint16_t Pixel

 

Enumerations

enum Orientation

{

    ORIENTATION_UNKNOWN = -1,

    ORIENTATION_NORTH,

    ORIENTATION_WEST,

    ORIENTATION_SOUTH,

    ORIENTATION_EAST

}

 

Functions

Pixel Color (int red, int green, int blue)

Pixel Color (const COLORREF &color)

Surface * LoadImage (DisplayDevice *display, const TCHAR *filename)

Surface * LoadImage (DisplayDevice *display, unsigned resourceID, const TCHAR *resclass, HINSTANCE hModule)

Surface * LoadImage (DisplayDevice *display, const uint8_t *pBegin, const uint8_t *pEnd)

bool SaveImage (const Surface *surface, const TCHAR *filename)

Point operator+ (const Point &a, const Point &b)

Point operator- (const Point &a, const Point &b)

 

Variables

const Pixel RED_MASK = 0x1F << 11

const Pixel GREEN_MASK = 0x3F << 5

const Pixel BLUE_MASK = 0x1F

const int RED_SHIFT = 11

const int GREEN_SHIFT = 5

const int BLUE_SHIFT = 0

const int RED_BITS = 5

const int GREEN_BITS = 6

const int BLUE_BITS = 5

 

Functions

Pixel Color ( const COLORREF & color ) [inline]
Parameters:

color

Returns:

Pixel

 

Pixel Color ( int red,

              int green,

              int blue

            ) [inline]

Parameters:

red

green

blue

Returns:

Pixel

 

Surface * Frog::LoadImage ( DisplayDevice * display,

                            const uint8_t * pBegin,

                            const uint8_t * pEnd

                          )

Parameters:

display

pBegin

pEnd

Returns:

Surface *

 

Surface * Frog::LoadImage ( DisplayDevice * display,

                            unsigned        resourceID,

                            const TCHAR *   resclass = _T("image"),

                            HINSTANCE       hModule = 0

                          )

Parameters:

display

resourceID

resclass

hModule

Returns:

Surface *

 

Surface * Frog::LoadImage ( DisplayDevice * display,

                            const TCHAR *   filename

                          )

Parameters:

display

filename

Returns:

Surface *

 

Point operator+ ( const Point & a,

                  const Point & b

                ) [inline]

Parameters:

a

b

Returns:

Point

 

Point operator- ( const Point & a,

                  const Point & b

                ) [inline]

Parameters:

a

b

Returns:

Point

 

bool Frog::SaveImage ( const Surface * surface,

                       const TCHAR *   filename

                     )

Parameters:

surface

filename

Returns:

bool