Go to the source code of this file.
Classes | |
| class | cinder::app::App |
| class | cinder::app::App::Settings |
| class | cinder::app::App::Listener |
Namespaces | |
| namespace | cinder |
| namespace | cinder::app |
Functions | |
App Free Functions | |
| int | cinder::app::getWindowWidth () |
| Returns the width of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| void | cinder::app::setWindowWidth (int windowWidth) |
| Sets the width of the active App's window measured in pixels. Ignored in full-screen mode. | |
| int | cinder::app::getWindowHeight () |
| Returns the height of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| void | cinder::app::setWindowHeight (int windowHeight) |
| Sets the height of the active App's window measured in pixels. Ignored in full-screen mode. | |
| void | cinder::app::setWindowSize (int windowWidth, int windowHeight) |
| Sets the size of the active App's window. Ignored in full-screen mode. | |
| Vec2f | cinder::app::getWindowCenter () |
| Returns the center of the active App's window or the screen in full-screen mode. | |
| Vec2i | cinder::app::getWindowSize () |
| Returns the size of the active App's window or the screen in full-screen mode. | |
| float | cinder::app::getWindowAspectRatio () |
| Returns the aspect ratio of the active App's window or the screen in full-screen mode. | |
| Area | cinder::app::getWindowBounds () |
| Returns the bounding area of the active App's window or the screen in full-screen mode. | |
| float | cinder::app::getFrameRate () |
| Returns the maximum frame-rate the active App will attempt to maintain. | |
| void | cinder::app::setFrameRate (float frameRate) |
| Sets the maximum frame-rate the active App will attempt to maintain. | |
| bool | cinder::app::isFullScreen () |
| Returns whether the active App is in full-screen mode or not. | |
| void | cinder::app::setFullScreen (bool fullScreen=true) |
| Sets whether the active App is in full-screen mode based on fullScreen. | |
| double | cinder::app::getElapsedSeconds () |
| Returns the number seconds which have elapsed since the active App launched. | |
| uint32_t | cinder::app::getElapsedFrames () |
| Returns the number of animation frames which have elapsed since the active App launched. | |
| DataSourceRef | cinder::app::loadResource (const std::string &macPath, int mswID, const std::string &mswType) |
| Returns the width of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| DataSourcePathRef | cinder::app::loadResource (const std::string &macPath) |
| Returns the width of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| std::string | cinder::app::getResourcePath (const std::string &rsrcRelativePath) |
| Returns the width of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| DataSourceBufferRef | cinder::app::loadResource (int mswID, const std::string &mswType) |
| Returns the width of the active App's window measured in pixels, or the screen when in full-screen mode. | |
| std::string | cinder::app::getAppPath () |
| Returns the path to the active App on disk. | |
| std::string | cinder::app::getOpenFilePath (const std::string &initialPath="", std::vector< std::string > extensions=std::vector< std::string >()) |
| Presents the user with a file-open dialog and returns the selected file path. | |
| std::string | cinder::app::getSaveFilePath (const std::string &initialPath="", std::vector< std::string > extensions=std::vector< std::string >()) |
| Presents the user with a file-save dialog and returns the selected file path. | |
| std::ostream & | cinder::app::console () |
| Returns a reference to an output console, which is an alias to std::cout on the mac, and a wrapper around OutputDebugString on MSW. | |
| Surface | cinder::app::copyWindowSurface () |
| Returns a copy of the window's contents as a Surface8u. | |
| Surface | cinder::app::copyWindowSurface (const Area &area) |
| Returns a copy of the Area area from the window's contents as a Surface8u. | |
| void | cinder::app::restoreWindowContext () |
| Restores the current rendering context to be the App's window or the screen in full-screen mode. Generally this is only necessary if the app has display a dialog box or some other external window. | |
| inline::CGContextRef | cinder::app::createWindowCgContext () |
| Returns a CGContextRef for drawing to the Window using CoreGraphics under Cocoa & Cocoa Touch. Assumes your App uses a Renderer2d. | |