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 |
| D3D9RenderWindow () |
| ~D3D9RenderWindow () |
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) |
| Destroys the window. More...
|
bool | isActive () |
| Used to retrieve or set the active state of the render target. More...
|
bool | isClosed () |
| Indicates whether the window has been closed by the user. More...
|
void | reposition (int left, int top) |
| Reposition the window. More...
|
void | resize (int width, int height) |
| Alter the size of the window. More...
|
void | swapBuffers (bool waitForVSync=true) |
| Swaps the frame buffers to display the next frame. More...
|
HWND | getWindowHandle () |
HWND | getParentWindowHandle () |
D3D9Driver * | getDirectD3DDriver () |
LPDIRECT3DDEVICE9 | getD3DDevice () |
void | outputText (int x, int ty, const String &text) |
| DEPRECATED Outputs text to the target at the specified co-ordinates. More...
|
void | getCustomAttribute (String name, void *pData) |
| Gets a custom (maybe platform-specific) attribute. More...
|
void | writeContentsToFile (const String &filename) |
| Overridden - see RenderTarget. More...
|
bool | requiresTextureFlipping () const |
DWORD | getMultiSampleQuality () |
void | WindowMovedOrResized (void) |
void | SetExternalWindowHandle (HWND externalHandle) |
bool | isReady () |
void | setReady (bool set) |
void | setActive (bool set) |
| Used to retrieve the active state of the render target. More...
|
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 | 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...
|
Protected Types |
typedef std::map< int, Viewport *,
std::less< int > > | ViewportList |
typedef std::vector< RenderTargetListener * > | RenderTargetListenerList |
Protected Methods |
bool | _checkMultiSampleQuality (D3DMULTISAMPLE_TYPE type, DWORD *outQuality, D3DFORMAT fBack, D3DFORMAT fDepth, UINT adapterNum, D3DDEVTYPE deviceType, BOOL fullScreen) |
void | updateStats (void) |
virtual void | firePreUpdate (void) |
| internal method for firing events. More...
|
virtual void | firePostUpdate (void) |
| internal method for firing events. More...
|
Static Protected Methods |
LRESULT CALLBACK | WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
Protected Attributes |
HWND | mExternalHandle |
HWND | mHWnd |
HWND | mParentHWnd |
bool | mActive |
bool | mReady |
bool | mClosed |
DWORD | mMultiSampleQuality |
D3D9Driver * | mpD3DDriver |
LPDIRECT3DDEVICE9 | mpD3DDevice |
D3DPRESENT_PARAMETERS | md3dpp |
LPDIRECT3DSURFACE9 | mpRenderSurface |
LPDIRECT3DSURFACE9 | mpRenderZBuffer |
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 |