Photon 0.0.2 Simple Open Source 2D Game API | Index
Constructor, every task needs a name and priority. Virtual destructor, exists simply to make inheritance safe. TaskManager class, maintains a list of Tasks and manages their status, handles adding, deleting, pausing, and unpausing tasks. TaskManager constructor, initializes task manager TaskManager destructor, destroys task manager Pointer to a task, used since Task is abstract and will always be accessed via a pointer. LogSink to be used with Log for simple text file output. Simple OO wrapper around the concept of a texture in openGL. Default constructor, initalizes internal state of Texture. Throwable is the base exception class for Photon. Constructor for a Throwable object, can specify as little or as much information as you’d like when throwing. Checks for OpenAL internal errors, throwing an APIError if the OpenAL error state is set and doing nothing if not. Class capable of keeping track of time. Initializes timer, timer is running starting at it’s creation. Virtual destructor, does nothing, exists only to make Timer inheritance safe. Unsigned byte, alias for unsigned char. Alias for unsigned integer. Unpause timer if paused. Unpause a task in the TaskManager task list. All of a state’s logic should go in update, it is called every frame before the rendering process begins. Pure virtual, every child task must overload it’s own update(), when a task is active this is called every ‘frame.’ Represents a two-dimensional vector. Initializes zero length vector. Accesses stream, any messages passed into verbose are given to associated LogSinks with a LogLevel of LOG_VERBOSE. Class which stores version information, such as release numbers. Default constructor. These functions are called by the above Ortho/Perspective functions, very rarely do they need to be called directly. Accesses stream, any messages passed into warning are given to associated LogSinks with a LogLevel of LOG_WARNING. Similar to the std::exception family, all photon exceptions (the Throwable family) define what() that returns a description of the exception. Pure virtual function which derived classes must define to write the message. x component of vector y component of vector |