Photon 0.0.2 Simple Open Source 2D Game API | Function Index
Obtain random number in range [0,max). Obtain random double in range [0,1). Obtain random sign, positive or negative. Get current surface-wide alpha value for image. Angle of vector in degrees, angle is calculated with respect to positive X axis. Angle of vector in radians, angle is calculated with respect to positive X axis. Get the Application’s AudioCore, should only be called after initAudioCore. Get name of active audio device. Get the path to the directory that the application is running in. Get y coord of bottom side of rectangle. Get bottom left corner of rectangle. Get bottom right corner of rectangle. Gets a listing of the CD directories on a system (not supported on all systems) Get center Point2. Get draw color of the font. Loads an amount of data, returns a pointer to the loaded data. Get just the description portion of an exception, used for chaining exceptions. Gets the system standard directory separator. Get the height of the display. Get the width of the display. Finds the amount of time passed between frames, or average of a number of frames if setFrameTimeSmoothing has been called. Gets number of frames per second the application is currently processing subject to smoothing by setFrameTimeSmoothing. Get height of rectangle. Gets height of texture. Get a reference to the instance of the derived class. Get x coord of left side of rectangle. Get length of vector. Gets last modification time for a file. Gets current location of mouse wheel, treated as if wheel describes a third axis of movement for the mouse. Gets current x location of mouse with respect to screen coordinates. Gets current y location of mouse with respect to screen coordinates. Gets name of the sink. Get the name associated with the resource. Get the name of the task. Gets position of internal cursor inside data. Obtain a list of all keys which are currently pressed. Get the priority of the task. Get radius of Circle. Access the application’s render TaskManager, Tasks registered with this TaskManager are executed after the current State::render. Get x coord of right side of rectangle. Obtain the currently configured search path. Gets size of data. Get time, in seconds, that application has been running. Get time in seconds. Get y coord of top side of rectangle. Get top left corner of rectangle. Get top right corner of rectangle. Access the application’s update TaskManager, Tasks registered with this TaskManager are executed after the current State::update. Get the path to the directory that the OS specifies for the user’s home. Template function for getting values from the config file. Get width of rectangle. Gets width of texture. Gets the writing directory. Get x coord of rectangle. Get y coord of rectangle. Default constructor, initalizes internal state of Image. Initialize the AudioCore, should be done before attempting to access it via getAudioCore. Initialize the instance of the singleton, can be done explicitly if order of construction matters. Check if circle intersects another. Check for intersection between two Rects. Checks if application is active, which on most systems simply means it has focus. Check if task is alive or not. Checks if a name refers to a directory. Checks if internal cursor is at end of file. Determine if source is looping. Checks if file is open. Check if task is paused or not. Check paused/unpaused status of timer. Determine if source is playing. Checks if a name refers to a symbolic link. Determine status of Font. Determine status of Source. Check if a given key is currently pressed. Sets state of task to dead, dead tasks remove themselves from the TaskManager’s task pool. Kills all tasks. Kill a task in the TaskManager task list. Lists the contents of a directory. Log constructor, initializes log singleton. Log destructor, destroys log singleton. LogSink constructor, requires a name. Virtual destructor, available to make inheritance safe. |