Photon 0.0.2 Simple Open Source 2D Game API | Index Class for reading data from a file, uses PhysFS http://physfs.icculus.org and is capable of reading from archives on the search path. Initializes empty buffer. Destructor, calls close. Draw a filled circle. Draw a filled rectangle. Flips image, horizontally and/or vertically. Flushes the data written to the config file to disk, generally needs not be called. Flushes the log, is generally not required. Simple OO wrapper around a TrueType font that can be drawn to textures and rendered via OpenGL. Default constructor, initalizes internal state of Font. Obtain random number in range [0,max). Obtain random double in range [0,1). Obtain random sign, positive or negative. Get current surface-wide alpha value for image. Angle of vector in degrees, angle is calculated with respect to positive X axis. Angle of vector in radians, angle is calculated with respect to positive X axis. Get the Application’s AudioCore, should only be called after initAudioCore. Get name of active audio device. Get the path to the directory that the application is running in. Get y coord of bottom side of rectangle. Get bottom left corner of rectangle. Get bottom right corner of rectangle. Gets a listing of the CD directories on a system (not supported on all systems) Get center Point2. Get draw color of the font. Loads an amount of data, returns a pointer to the loaded data. Get just the description portion of an exception, used for chaining exceptions. Gets the system standard directory separator. Get the height of the display. Get the width of the display. Finds the amount of time passed between frames, or average of a number of frames if setFrameTimeSmoothing has been called. Gets number of frames per second the application is currently processing subject to smoothing by setFrameTimeSmoothing. Get height of rectangle. Gets height of texture. Get a reference to the instance of the derived class. Get x coord of left side of rectangle. Get length of vector. Gets last modification time for a file. Gets current location of mouse wheel, treated as if wheel describes a third axis of movement for the mouse. Gets current x location of mouse with respect to screen coordinates. Gets current y location of mouse with respect to screen coordinates. Gets name of the sink. Get the name associated with the resource. Get the name of the task. Gets position of internal cursor inside data. Obtain a list of all keys which are currently pressed. Get the priority of the task. Get radius of Circle. Access the application’s render TaskManager, Tasks registered with this TaskManager are executed after the current State::render. Get x coord of right side of rectangle. Obtain the currently configured search path. Gets size of data. Get time, in seconds, that application has been running. Get time in seconds. Get y coord of top side of rectangle. Get top left corner of rectangle. Get top right corner of rectangle. Access the application’s update TaskManager, Tasks registered with this TaskManager are executed after the current State::update. Get the path to the directory that the OS specifies for the user’s home. Template function for getting values from the config file. Get width of rectangle. Gets width of texture. Gets the writing directory. Get x coord of rectangle. Get y coord of rectangle. 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. Default constructor, initalizes internal state of Image. Initialize the AudioCore, should be done before attempting to access it via getAudioCore. Initialize the instance of the singleton, can be done explicitly if order of construction matters. Check if circle intersects another. Check for intersection between two Rects. Checks if application is active, which on most systems simply means it has focus. Check if task is alive or not. Checks if a name refers to a directory. Checks if internal cursor is at end of file. Determine if source is looping. Checks if file is open. Check if task is paused or not. Check paused/unpaused status of timer. Determine if source is playing. Checks if a name refers to a symbolic link. Determine status of Font. 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. Check if a given key is currently pressed. Sets state of task to dead, dead tasks remove themselves from the TaskManager’s task pool. Kills all tasks. Kill a task in the TaskManager task list. |