Photon 0.0.2 Simple Open Source 2D Game API | Function Index
Find length of a vector. Attempts to create a directory. Check if a given mouse button is currently pressed. Move the center of the Circle a given x and y distance. move rectangle relative to current position. Move the center of the Circle to a new location. move rectangle to new location. Normalizes the vector. Accesses stream, any messages passed into note are given to associated LogSinks with a LogLevel of LOG_NOTE. Called when a key is pressed. Called when a key is released. Virtual function, overload to define behavior when the task is killed. Called when a mouse button is pressed. Called when a mouse button is released. Called when the mouse is moved with the amount the mouse was moved by NOT with the new position. Called when mouse wheel is scrolled. 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 function, overload to define behavior every time that the task is paused. 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 function, overload to define behavior when the task is started. Virtual function, overload to define behavior every time that the task is unpaused. open a file, processing it as an INI-like config file. Loads a file into the FileBuffer. Opens an TrueType font. Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA. Opens new resource via the associated ResourceManager. Opens an audio file, supported formats are WAV and Ogg. Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA. Pauses the playback of the sound attached to the source. Pause timer. Pause a task in the TaskManager task list. Default constructor, sets color to white. Enables or disables symbolic linking. Starts the playback of the sound attached to the source. Pop the current State, returning to the prior State on the stack. Push a new State, does not remove old State. Sets Quit flag, terminating application. Convert radians to degrees. Constructor for random generator, using time as seed. Initializes rectangle at (0,0) with size of 0. Default destructor, exists to make Rect inheritance safe. Removes a reference to the resource, releasing if needed. Attempts to remove a file or directory. Removes a directory from the search path, if it exists on the path. Remove a sink from the log by name. Remove all sinks from log. The only required member of State, anything that should be drawn to the screen while the State is active should be drawn in render. Reset timer to 0, will unpause timer if paused. Change the size of the Circle. Resize the image to a specific size. set new size for rectangle. Change the size of the Circle in relation to the current size. set new size for rectangle, relative to current size. resolve vector, given a magnitude & angle in degrees. resolve vector, given a magnitude & angle in radians. Default constructor. Destructor, calls release. Rewinds the position of the sound attached to the source. Runs application until a quit is requested either via the operating system (ex. |