Photon 0.0.2 Simple Open Source 2D Game API | Index
Lists the contents of a directory. Log class for photon, Log passes all messages to any attached LogSinks, which can then take care of any output which is desired. Log constructor, initializes log singleton. Log destructor, destroys log singleton. Critical error, used for failures which are threats to stability. Normal error, used for potential serious failures. A note, highest priority so that they are always printed, not used for errors, only for temporary notes. Verbose warning, lowest priority. A warning, used for non critical failures. Enumeration defining severity of an error. Base class for all LogSinks to be used with Log, derived classes must define message(LogLevel level, std::string string). LogSink constructor, requires a name. Virtual destructor, available to make inheritance safe. Pointer to a log sink, used since LogSink is abstract and will always be accessed via a pointer. Find length of a vector. major release version number, should be changed when major changes take place. Makes the Color the current openGL color. Left mouse button. Middle mouse button. Right mouse button. MemoryError should be thrown if an error occurs while allocating memory. minor release version number, should be changed when key features are added/removed/changed. Attempts to create a directory. Enumeration defining buttons, used in Application::mouseButtonPressed. 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. Patch number, should be changed upon every release that isn’t signifigant enough to reflect a change in the minor versioning number. Pauses the playback of the sound attached to the source. Pause timer. Pause a task in the TaskManager task list. Class which is used for drawing primitives. Default constructor, sets color to white. Enables or disables symbolic linking. PhotonMain is the entrypoint for all Photon applications, attempting to use main will result in an error message since main is defined within the library. Defined constant for pi: 3.1415926535897932384626433832795 Starts the playback of the sound attached to the source. Alias for Vector2 type. Pop the current State, returning to the prior State on the stack. PreconditionException should be thrown when a precondition is not met. Lower-than-usual priority. Highest priority available. Lower-than-usual priority. Lowest priority available. Normal priority, suitable for most tasks. Enumeration defining priority of a Task. Push a new State, does not remove old State. Sets Quit flag, terminating application. |