Photon 0.0.2 Simple Open Source 2D Game API | Index
Define a new named resource. Define a new named resource. Define a new named resource. Define a new named resource. Adds a sink to the Log, sinks are given access to all messages passed into the log. Add a new Task to the TaskManager’s list. Attempts to add a directory to the search path. Alpha component of color. APIError should be thrown if an error occurs in code which is not part of Photon. Photon main class, contains functions that control creation of the display, setting the OpenGL view, input handling, timing, and State management. Default constructor, initializes the internal state & dependencies. Default destructor, shuts down dependencies. ArgumentException should be thrown when an argument is passed to a function that is invalid. Photon’s core for audio manipulation/control. Initialize underlying APIs and setup Task internals. Shutdown underlying APIs. Makes texture the current OpenGL texture. Blue component of color. Calculates angle between two vectors. Calculates angle between two vectors. calculates & returns the intersection of two rectangles. Calculate the normal vector. Checks for OpenAL internal errors, returning a descriptive string if the OpenAL error state is currently set. Defines geometric entity known as a circle. Default constructor for circle, sets position to (0,0) and radius to 0. Destructor, does nothing, exists to make Circle inheritance safe. Clamp a value between two boundaries. Cleans up any unused resources of the type. Flushes the data and closes, open must be called again before using same ConfigFile. Frees memory occupied by loaded data. Class for storing components of a color. Initializes all components to 255. ConfigFile class, for reading/writing INI-style config files. Default constructor for ConfigFile. Calls close upon the ConfigFile. LogSink to be used with Log for simple console output. Check if circle contains a given point. Check if a point is contained within the Rect. This function attempts to create a display with the given parameters. Accesses stream, any messages passed into critical are given to associated LogSinks with a LogLevel of LOG_CRITICAL. Convert degrees to radians. Destroy the instance of the singleton, can be done explicitly if order of destruction matters. Determine distance between two points. Calculates dot product of two vectors. draws image to the screen at a givem positon. Draw an empty circle. Draw a line from one point to another. Draws a single point. Draw an empty rectangle. Draw image, rotated about it’s own center by a specified angle. Draw a vector, including small arrow, with base at a given point. Checks a version of a library against the required version, throws an APIError if the version is not met. Accesses stream, any messages passed into error are given to associated LogSinks with a LogLevel of LOG_ERROR. Error is the base error class, all errors inherit from it, and it inherits from Throwable. Exception is the base exception class, all exceptions inherit from it, and it inherits from Throwable. Checks if a file/directory exists. String for holding extra data, such as a release name or special tag. |