Photon 0.0.2 Simple Open Source 2D Game API | Function Index
Check for equality, using an epsilon. Reseed random generator, a given seed will always turn out same string of random numbers. Initialize vector given an x and y component. Sets alpha-component for Image to be used when surface is drawn. Set draw color of the font. Sets color to use for drawing. Toggle depth testing and clearing of depth buffer. Sets a fixed timestep to be used in calls to the current State’s update method. Sets number of frames used to smooth the timeDelta so that minor jitters in frramerate do not cause severe stuttering. Sets if the source’s sound is looping or is played only once. Sets an orthographic projection matrix. Sets new ortho viewport within a rectangular portion of the screen. Sets a perspective projection matrix. Creates a viewport with a given 3D perspective inside of a rectangular portion of the screen. Set the current Application State, removing all other States. Sets title of application that shows up in title bar. Template function for setting variables in the config file. Set the current viewport rectangle within the screen. Sets the writing directory, used by mkdir and remove. Default constructor, initalizes internal state of Source. Destructor for source, frees the OpenAL source resource. A State’s constructor is called whenever the state is made active via Application::setState. A State’s destructor is called whenever the state is no longer the active state (the application ends, or a new state is made active). Steps the task manager, calling each active task once. Stops the playback of the sound attached to the source. Stretch image by a given factor. Constructor, every task needs a name and priority. Virtual destructor, exists simply to make inheritance safe. TaskManager constructor, initializes task manager TaskManager destructor, destroys task manager Default constructor, initalizes internal state of Texture. 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. Initializes timer, timer is running starting at it’s creation. Virtual destructor, does nothing, exists only to make Timer inheritance safe. 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.’ Initializes zero length vector. Accesses stream, any messages passed into verbose are given to associated LogSinks with a LogLevel of LOG_VERBOSE. Default constructor. 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. |