Function 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
M
 magnitude, Vector2
 mkdir
 mouseButtonPressed, Application
 moveRel
 moveTo
N
 normalize, Vector2
 note, Log
O
 onKeyPress, State
 onKeyRelease, State
 onKill, Task
 onMouseButtonPress, State
 onMouseButtonRelease, State
 onMouseMove, State
 onMouseScroll, State
 onPause
 onResume, State
 onStart, Task
 onUnpause, Task
 open
P
 pause
 pauseTask, TaskManager
 Pen, Pen
 permitSymbolicLinks
 play, Source
 popState, Application
 pushState, Application
Q
 quit, Application
R
 radToDeg
 RandGen, RandGen
 Rect, Rect
~Rect, Rect
 release, ResourceManaged
 remove
 removeFromSearchPath
 removeSink, Log
 removeSinks, Log
 render, State
 reset, Timer
 resize
 resizeRel
 resolveDeg, Vector2
 resolveRad, Vector2
 ResourceManaged, ResourceManaged
~ResourceManaged, ResourceManaged
 rewind, Source
 run, Application
scalar magnitude(const Vector2 &v)
Find length of a vector.
bool mkdir(const std::string &dir)
Attempts to create a directory.
bool mouseButtonPressed(MouseButton button)
Check if a given mouse button is currently pressed.
void moveRel(scalar xMove,
scalar yMove)
Move the center of the Circle a given x and y distance.
void moveRel(scalar xMove,
scalar yMove)
move rectangle relative to current position.
void moveTo(const Point2 &center)
Move the center of the Circle to a new location.
void moveTo(const Point2 &topleft)
move rectangle to new location.
void normalize()
Normalizes the vector.
std::ostream& note()
Accesses stream, any messages passed into note are given to associated LogSinks with a LogLevel of LOG_NOTE.
virtual void onKeyPress(KeyCode key)
Called when a key is pressed.
virtual void onKeyRelease(KeyCode key)
Called when a key is released.
virtual void onKill()
Virtual function, overload to define behavior when the task is killed.
virtual void onMouseButtonPress(MouseButton button)
Called when a mouse button is pressed.
virtual void onMouseButtonRelease(MouseButton button)
Called when a mouse button is released.
virtual void onMouseMove(const math::Vector2 &delta)
Called when the mouse is moved with the amount the mouse was moved by NOT with the new position.
virtual void onMouseScroll(ScrollDir dir)
Called when mouse wheel is scrolled.
virtual void onPause()
If a state is executing and a new state is pushed onto the stack via Application::pushState the state will be paused until a time that it is either unpaused or popped from the stack itself.
virtual void onPause()
Virtual function, overload to define behavior every time that the task is paused.
virtual void onResume()
If a state has been paused and is then made current again by the state(s) pushed on top of it being popped, the state management system will call onResume allowing the state to undo any work that had been done in onPause.
virtual void onStart()
Virtual function, overload to define behavior when the task is started.
virtual void onUnpause()
Virtual function, overload to define behavior every time that the task is unpaused.
void open(const std::string &filename)
open a file, processing it as an INI-like config file.
void open(const std::string &filename)
Loads a file into the FileBuffer.
void open(const std::string &name)
Opens an TrueType font.
void open(const std::string &name)
Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA.
virtual void open(const std::string &name)
Opens new resource via the associated ResourceManager.
void open(const std::string &name)
Opens an audio file, supported formats are WAV and Ogg.
void open(const std::string &name)
Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA.
void pause()
Pauses the playback of the sound attached to the source.
void pause()
Pause timer.
void pauseTask(const std::string &taskName)
Pause a task in the TaskManager task list.
Pen()
Default constructor, sets color to white.
void permitSymbolicLinks(bool allow)
Enables or disables symbolic linking.
void play()
Starts the playback of the sound attached to the source.
void popState()
Pop the current State, returning to the prior State on the stack.
template<class StateT> void pushState()
Push a new State, does not remove old State.
void quit()
Sets Quit flag, terminating application.
scalar radToDeg(scalar radians)
Convert radians to degrees.
RandGen()
Constructor for random generator, using time as seed.
Rect()
Initializes rectangle at (0,0) with size of 0.
virtual ~Rect()
Default destructor, exists to make Rect inheritance safe.
virtual void release()
Removes a reference to the resource, releasing if needed.
bool remove(const std::string &item)
Attempts to remove a file or directory.
void removeFromSearchPath(const std::string &dir)
Removes a directory from the search path, if it exists on the path.
void removeSink(const std::string &sinkName)
Remove a sink from the log by name.
void removeSinks()
Remove all sinks from log.
virtual void render()=0
The only required member of State, anything that should be drawn to the screen while the State is active should be drawn in render.
void reset()
Reset timer to 0, will unpause timer if paused.
void resize(scalar radius)
Change the size of the Circle.
void resize(scalar width,
scalar height)
Resize the image to a specific size.
void resize(scalar width,
scalar height)
set new size for rectangle.
void resizeRel(scalar radiusChange)
Change the size of the Circle in relation to the current size.
void resizeRel(scalar widthDelta,
scalar heightDelta)
set new size for rectangle, relative to current size.
void resolveDeg(scalar magnitude,
scalar angle)
resolve vector, given a magnitude & angle in degrees.
void resolveRad(scalar magnitude,
scalar angle)
resolve vector, given a magnitude & angle in radians.
ResourceManaged()
Default constructor.
virtual ~ResourceManaged()
Destructor, calls release.
void rewind()
Rewinds the position of the sound attached to the source.
void run()
Runs application until a quit is requested either via the operating system (ex.