Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
F
 File Access, ConfigFile
 FileBuffer
~FileBuffer, FileBuffer
 filesys
 fillCircle, Pen
 fillRect, Pen
 flip, Image
 flush
 Font
 Font Metrics, Font
 Functions, LogSink
G
 General
 Generic
 genRand, RandGen
 genRand01, RandGen
 genRandSign, RandGen
 Geometry
 getAlpha, Image
 getAngleDeg, Vector2
 getAngleRad, Vector2
 getAudioCore, Application
 getAudioDeviceName, AudioCore
 getBaseDir
 getBottom, Rect
 getBottomLeft, Rect
 getBottomRight, Rect
 getCDDirs
 getCenter, Circle
 getColor, Font
 getData, FileBuffer
 getDesc, Throwable
 getDirSeparator
 getDisplayHeight, Application
 getDisplayWidth, Application
 getElapsedTime, Application
 getFramerate, Application
 getHeight
 getInstance, Singleton
 getLeft, Rect
 getMagnitude, Vector2
 getModTime
 getMouseWheelPos, Application
 getMouseX, Application
 getMouseY, Application
 getName
 getPosition, FileBuffer
 getPressedKeys, Application
 getPriority, Task
 getRadius, Circle
 getRenderTaskManager, Application
 getRight, Rect
 getSearchPath
 getSize, FileBuffer
 getTime
 getTop, Rect
 getTopLeft, Rect
 getTopRight, Rect
 getUpdateTaskManager, Application
 getUserDir
 getVariable, ConfigFile
 getWidth
 getWriteDir
 getX, Rect
 getY, Rect
 green, Color
H
 HTMLSink
I
 Image
 initAudioCore, Application
 initialize, Singleton
 Input, Application
 intersects
 isActive, Application
 isAlive, Task
 isDir
 isEOF, FileBuffer
 isLooping, Source
 isOpen, FileBuffer
 isPaused
 isPlaying, Source
 isSymbolicLink
 isValid
K
 KEY_0
 KEY_1
 KEY_2
 KEY_3
 KEY_4
 KEY_5
 KEY_6
 KEY_7
 KEY_8
 KEY_9
 KEY_A
 KEY_B
 KEY_BKSLASH
 KEY_C
 KEY_COLON
 KEY_COMMA
 KEY_D
 KEY_DELETE
 KEY_DOWN
 KEY_E
 KEY_END
 KEY_EQUAL
 KEY_ESC
 KEY_F
 KEY_F1
 KEY_F10
 KEY_F11
 KEY_F12
 KEY_F13
 KEY_F14
 KEY_F15
 KEY_F16
 KEY_F17
 KEY_F18
 KEY_F19
 KEY_F2
 KEY_F20
 KEY_F21
 KEY_F22
 KEY_F23
 KEY_F24
 KEY_F25
 KEY_F3
 KEY_F4
 KEY_F5
 KEY_F6
 KEY_F7
 KEY_F8
 KEY_F9
 KEY_G
 KEY_H
 KEY_HOME
 KEY_I
 KEY_INSERT
 KEY_J
 KEY_K
 KEY_L
 KEY_LALT
 KEY_LBRAC
 KEY_LCTRL
 KEY_LEFT
 KEY_LSHIFT
 KEY_M
 KEY_MINUS
 KEY_N
 KEY_NUM_0
 KEY_NUM_1
 KEY_NUM_2
 KEY_NUM_3
 KEY_NUM_4
 KEY_NUM_5
 KEY_NUM_6
 KEY_NUM_7
 KEY_NUM_8
 KEY_NUM_9
 KEY_NUM_ASTERIX
 KEY_NUM_ENTER
 KEY_NUM_MINUS
 KEY_NUM_PERIOD
 KEY_NUM_PLUS
 KEY_NUM_SLASH
 KEY_O
 KEY_P
 KEY_PERIOD
 KEY_PGDOWN
 KEY_PGUP
 KEY_Q
 KEY_QUOTE
 KEY_R
 KEY_RALT
 KEY_RBRAC
 KEY_RCTRL
 KEY_RETURN
 KEY_RIGHT
 KEY_RSHIFT
 KEY_S
 KEY_SLASH
 KEY_SPACE
 KEY_T
 KEY_TAB
 KEY_TILDE
 KEY_U
 KEY_UP
 KEY_V
 KEY_W
 KEY_X
 KEY_Y
 KEY_Z
 Keyboard Actions, State
 KeyCode
 keyPressed, Application
 kill, Task
 killAllTasks, TaskManager
 killTask, TaskManager
Class for reading data from a file, uses PhysFS http://physfs.icculus.org and is capable of reading from archives on the search path.
FileBuffer()
Initializes empty buffer.
~FileBuffer()
Destructor, calls close.
void fillCircle(const math::Circle &circle) const
Draw a filled circle.
void fillRect(const math::Rect &rect) const
Draw a filled rectangle.
void flip(bool horizontal,
bool vertical)
Flips image, horizontally and/or vertically.
void flush()
Flushes the data written to the config file to disk, generally needs not be called.
void flush()
Flushes the log, is generally not required.
Simple OO wrapper around a TrueType font that can be drawn to textures and rendered via OpenGL.
Font()
Default constructor, initalizes internal state of Font.
unsigned long genRand(unsigned long max)
Obtain random number in range [0,max).
double genRand01()
Obtain random double in range [0,1).
double genRandSign()
Obtain random sign, positive or negative.
ubyte getAlpha() const
Get current surface-wide alpha value for image.
scalar getAngleDeg() const
Angle of vector in degrees, angle is calculated with respect to positive X axis.
scalar getAngleRad() const
Angle of vector in radians, angle is calculated with respect to positive X axis.
audio::AudioCore& getAudioCore()
Get the Application’s AudioCore, should only be called after initAudioCore.
std::string getAudioDeviceName() const
Get name of active audio device.
std::string getBaseDir()
Get the path to the directory that the application is running in.
scalar getBottom() const
Get y coord of bottom side of rectangle.
Point2 getBottomLeft() const
Get bottom left corner of rectangle.
Point2 getBottomRight() const
Get bottom right corner of rectangle.
std::vector<std::string> getCDDirs()
Gets a listing of the CD directories on a system (not supported on all systems)
Point2 getCenter() const
Get center Point2.
Color getColor() const
Get draw color of the font.
std::vector<ubyte> getData(int amount = )
Loads an amount of data, returns a pointer to the loaded data.
std::string virtual getDesc() const throw()
Get just the description portion of an exception, used for chaining exceptions.
std::string getDirSeparator()
Gets the system standard directory separator.
uint getDisplayHeight()
Get the height of the display.
uint getDisplayWidth()
Get the width of the display.
double getElapsedTime()
Finds the amount of time passed between frames, or average of a number of frames if setFrameTimeSmoothing has been called.
double getFramerate()
Gets number of frames per second the application is currently processing subject to smoothing by setFrameTimeSmoothing.
scalar getHeight() const
Get height of rectangle.
scalar getHeight() const
Gets height of texture.
static T& getInstance()
Get a reference to the instance of the derived class.
scalar getLeft() const
Get x coord of left side of rectangle.
scalar getMagnitude() const
Get length of vector.
PHYSFS_sint64 getModTime(const std::string &item)
Gets last modification time for a file.
int getMouseWheelPos()
Gets current location of mouse wheel, treated as if wheel describes a third axis of movement for the mouse.
int getMouseX()
Gets current x location of mouse with respect to screen coordinates.
int getMouseY()
Gets current y location of mouse with respect to screen coordinates.
std::string getName() const
Gets name of the sink.
std::string getName() const
Get the name associated with the resource.
std::string getName() const
Get the name of the task.
uint getPosition() const
Gets position of internal cursor inside data.
std::vector<KeyCode> getPressedKeys()
Obtain a list of all keys which are currently pressed.
uint getPriority() const
Get the priority of the task.
scalar getRadius() const
Get radius of Circle.
util::TaskManager& getRenderTaskManager()
Access the application’s render TaskManager, Tasks registered with this TaskManager are executed after the current State::render.
scalar getRight() const
Get x coord of right side of rectangle.
std::vector<std::string> getSearchPath()
Obtain the currently configured search path.
uint getSize() const
Gets size of data.
scalar getTime()
Get time, in seconds, that application has been running.
double getTime() const
Get time in seconds.
scalar getTop() const
Get y coord of top side of rectangle.
Point2 getTopLeft() const
Get top left corner of rectangle.
Point2 getTopRight() const
Get top right corner of rectangle.
util::TaskManager& getUpdateTaskManager()
Access the application’s update TaskManager, Tasks registered with this TaskManager are executed after the current State::update.
std::string getUserDir()
Get the path to the directory that the OS specifies for the user’s home.
template<class varType> varType getVariable(const std::string &sec,
const std::string &var,
varType defVal) const
Template function for getting values from the config file.
scalar getWidth() const
Get width of rectangle.
scalar getWidth() const
Gets width of texture.
std::string getWriteDir()
Gets the writing directory.
scalar getX() const
Get x coord of rectangle.
scalar getY() const
Get y coord of rectangle.
ubyte green
Green component of color.
LogSink to be used with Log for simple HTML output.
Image is a class which is used to store a single image, for use in 2D games.
Image()
Default constructor, initalizes internal state of Image.
void initAudioCore(const std::string &deviceName = "")
Initialize the AudioCore, should be done before attempting to access it via getAudioCore.
static void initialize()
Initialize the instance of the singleton, can be done explicitly if order of construction matters.
bool intersects(const Circle &circle) const
Check if circle intersects another.
bool intersects(const Rect &rect) const
Check for intersection between two Rects.
bool isActive()
Checks if application is active, which on most systems simply means it has focus.
bool isAlive() const
Check if task is alive or not.
bool isDir(const std::string &item)
Checks if a name refers to a directory.
bool isEOF() const
Checks if internal cursor is at end of file.
bool isLooping() const
Determine if source is looping.
bool isOpen() const
Checks if file is open.
bool isPaused() const
Check if task is paused or not.
bool isPaused() const
Check paused/unpaused status of timer.
bool isPlaying() const
Determine if source is playing.
bool isSymbolicLink(const std::string &item)
Checks if a name refers to a symbolic link.
bool isValid() const
Determine status of Font.
bool isValid() const
Determine status of Source.
0 key
1 key
2 key
3 key
4 key
5 key
6 key
7 key
8 key
9 key
A key
B key
Backslash \ key
C key
Colon : key
Comma , key
D key
Delete key
Down arrow key
E key
End key
Equal key KEY_BACKSPACE- Backspace key
Escape key
F key
F1 key
F10 key
F11 key
F12 key
F13 key
F14 key
F15 key
F16 key
F17 key
F18 key
F19 key
F2 key
F20 key
F21 key
F22 key
F23 key
F24 key
F25 key
F3 key
F4 key
F5 key
F6 key
F7 key
F8 key
F9 key
G key
H key
Home key
I key
Insert key
J key
K key
L key
Left alt key
Left bracket [ key
Left control key
Left arrow key
Left shift key
M key
Minus key
N key
Numpad 0 key
Numpad 1 key
Numpad 2 key
Numpad 3 key
Numpad 4 key
Numpad 5 key
Numpad 6 key
Numpad 7 key
Numpad 8 key
Numpad 9 key
Numpad asterix * key
Numpad enter key
Numpad minus - key
Numpad period .
Numpad plus + key
Numpad slash / key
O key
P key
Period .
Page down key
Page up key
Q key
Quote “ key
R key
Right alt key
Right bracket ] key
Right control key
Enter/Return key
Right arrow key
Right shift key
S key
Slash / key
Space bar key
T key
Tab key
Tilde key
U key
Up arrow key
V key
W key
X key
Y key
Z key
Enumeration defining keys, used in Application::keyPressed.
bool keyPressed(KeyCode key)
Check if a given key is currently pressed.
void kill()
Sets state of task to dead, dead tasks remove themselves from the TaskManager’s task pool.
void killAllTasks()
Kills all tasks.
void killTask(const std::string &taskName)
Kill a task in the TaskManager task list.