Public Types |
| enum | StatFlags {
SF_NONE = 0,
SF_FPS = 1,
SF_AVG_FPS = 2,
SF_BEST_FPS = 4,
SF_WORST_FPS = 8,
SF_TRIANGLE_COUNT = 16,
SF_ALL = 0xFFFF
} |
Public Methods |
| | SDLWindow () |
| | ~SDLWindow () |
| void | create (String name, int width, int height, int colourDepth, bool fullScreen, int left, int top, bool depthBuffer, void *miscParam,...) |
| | Creates & displays the new window. More...
|
| void | destroy (void) |
| | Overridden - see RenderWindow. More...
|
| bool | isActive (void) |
| | Overridden - see RenderWindow. More...
|
| bool | isClosed (void) |
| | Overridden - see RenderWindow. More...
|
| void | reposition (int left, int top) |
| | Overridden - see RenderWindow. More...
|
| void | resize (int width, int height) |
| | Overridden - see RenderWindow. More...
|
| void | swapBuffers (bool waitForVSync) |
| | Overridden - see RenderWindow. More...
|
| void | outputText (int x, int y, const String &text) |
| | DEPRECATED Outputs text to the target at the specified co-ordinates. More...
|
| void | writeContentsToFile (const String &filename) |
| | Overridden - see RenderTarget. More...
|
| bool | requiresTextureFlipping () const |
| virtual void | update (void) |
| | Updates the window contents. More...
|
| virtual bool | isFullScreen (void) |
| | Returns true if window is running in fullscreen mode. More...
|
| virtual void | getMetrics (int &width, int &height, int &colourDepth, int &left, int &top) |
| | Overloaded version of getMetrics from RenderTarget, including extra details specific to windowing systems. More...
|
| virtual void | getMetrics (int &width, int &height, int &colourDepth) |
| | Retrieve information about the render target. More...
|
| virtual String | getName (void) |
| | Retrieve target's name. More...
|
| virtual int | getWidth (void) |
| virtual int | getHeight (void) |
| virtual int | getColourDepth (void) |
| virtual Viewport * | addViewport (Camera *cam, int ZOrder=0, float left=0, float top=0, float width=100, float height=100) |
| | Adds a viewport to the rendering target. More...
|
| virtual unsigned short | getNumViewports (void) |
| | Returns the number of viewports attached to this target. More...
|
| virtual Viewport * | getViewport (unsigned short index) |
| | Retrieves a pointer to the viewport with the given index. More...
|
| virtual void | removeViewport (int ZOrder) |
| | Removes a viewport at a given ZOrder. More...
|
| virtual void | removeAllViewports (void) |
| | Removes all viewports on this target. More...
|
| virtual void | setStatsDisplay (StatFlags sf) |
| | DEPRECATED Set what kind of statistics display (if any) should be displayed by the system about this target. More...
|
| virtual void | getStatistics (float &lastFPS, float &avgFPS, float &bestFPS, float &worstFPS) |
| | Retieves details of current rendering performance. More...
|
| virtual float | getLastFPS () |
| | Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered. More...
|
| virtual float | getAverageFPS () |
| | Individual stats access - gets the average frames per second (FPS) since call to RenderSystem::startRendering. More...
|
| virtual float | getBestFPS () |
| | Individual stats access - gets the best frames per second (FPS) since call to RenderSystem::startRendering. More...
|
| virtual float | getWorstFPS () |
| | Individual stats access - gets the worst frames per second (FPS) since call to RenderSystem::startRendering. More...
|
| virtual void | resetStatistics (void) |
| | Resets saved frame-rate statistices. More...
|
| virtual void | getCustomAttribute (String name, void *pData) |
| | Gets a custom (maybe platform-specific) attribute. More...
|
| virtual void | setDebugText (const String &text) |
| | Adds debug text to this window. More...
|
| const String & | RenderTarget::getDebugText () const |
| | Returns the debug text. More...
|
| virtual void | addListener (RenderTargetListener *listener) |
| | Add a listener to this RenderTarget which will be called back before & after rendering. More...
|
| virtual void | removeListener (RenderTargetListener *listener) |
| | Removes a RenderTargetListener previously registered using addListener. More...
|
| virtual void | removeAllListeners (void) |
| | Removes all listeners from this instance. More...
|
| virtual void | setPriority (uchar priority) |
| | Sets the priority of this render target in relation to the others. More...
|
| virtual uchar | getPriority () const |
| | Gets the priority of a render target. More...
|
| virtual bool | isActive () const |
| | Used to retrieve or set the active state of the render target. More...
|
| virtual void | setActive (bool state) |
| | Used to retrieve the active state of the render target. More...
|
Protected Types |
typedef std::map< int, Viewport *,
std::less< int > > | ViewportList |
| typedef std::vector< RenderTargetListener * > | RenderTargetListenerList |
Protected Methods |
| void | updateStats (void) |
| virtual void | firePreUpdate (void) |
| | internal method for firing events. More...
|
| virtual void | firePostUpdate (void) |
| | internal method for firing events. More...
|
Protected Attributes |
| bool | mIsFullScreen |
| int | mLeft |
| int | mTop |
| String | mName |
| | The name of this target. More...
|
| uchar | mPriority |
| | The priority of the render target. More...
|
| int | mWidth |
| int | mHeight |
| int | mColourDepth |
| bool | mIsDepthBuffered |
| StatFlags | mStatFlags |
| float | mLastFPS |
| float | mAvgFPS |
| float | mBestFPS |
| float | mWorstFPS |
| unsigned int | mTris |
| String | mDebugText |
| ViewportList | mViewportList |
| | List of viewports, map on Z-order. More...
|
| RenderTargetListenerList | mListeners |
Private Methods |
| void | processEvents (void) |
Private Attributes |
| SDL_Surface * | mScreen |
| bool | mActive |
| bool | mClosed |