Photon 0.0.2 Simple Open Source 2D Game API | Index Convert radians to degrees. Psuedorandom number generator class which uses Mersenne Twister. Constructor for random generator, using time as seed. RangeException should be thrown if something (such as an array bound) is out of bounds. Defines geometric entity known as a rectangle. Initializes rectangle at (0,0) with size of 0. Default destructor, exists to make Rect inheritance safe. Red component of color. Removes a reference to the resource, releasing if needed. Attempts to remove a file or directory. Removes a directory from the search path, if it exists on the path. Remove a sink from the log by name. Remove all sinks from log. The only required member of State, anything that should be drawn to the screen while the State is active should be drawn in render. Reset timer to 0, will unpause timer if paused. Change the size of the Circle. Resize the image to a specific size. set new size for rectangle. Change the size of the Circle in relation to the current size. set new size for rectangle, relative to current size. resolve vector, given a magnitude & angle in degrees. resolve vector, given a magnitude & angle in radians. ResourceException should be thrown if there is a problem accessing a resource. Base template class, to be used as a base from which classes which have resources that can be controlled, such as textures and music, can be derived. Default constructor. Destructor, calls release. Templated base class for managing resources like textures and music. Rewinds the position of the sound attached to the source. Runs application until a quit is requested either via the operating system (ex. Scalar value, used throughout photon in place of double or float Check for equality, using an epsilon. Wheel was scrolled down. Wheel was scrolled up. Enumeration defining scroll direction of mouse wheel. 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. Creates color, component by component. 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. Shared pointer type. Template class for singleton pattern. Simple OO wrapper around an OpenAL source, defines the interface used for Sample and Music. Default constructor, initalizes internal state of Source. Destructor for source, frees the OpenAL source resource. Pure virtual State class, used as base class for Photon’s state system. 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. Typedef for vector of strings, which is used all throughout photon. |