Photon 0.0.2 Simple Open Source 2D Game API | Function 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. Default constructor, initializes the internal state & dependencies. Default destructor, shuts down dependencies. Initialize underlying APIs and setup Task internals. Shutdown underlying APIs. Makes texture the current OpenGL texture. 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. 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. Initializes all components to 255. Default constructor for ConfigFile. Calls close upon the ConfigFile. 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. Checks if a file/directory exists. 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. Default constructor, initalizes internal state of Font. |