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 |
| D3D7RenderWindow () |
| ~D3D7RenderWindow () |
void | create (String name, int width, int height, int colourDepth, bool fullScreen, int left, int top, bool depthBuffer, void *miscParam,...) |
| Overridden - see RenderWindow. 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...
|
HWND | getWindowHandle (void) |
| Retrieves a handle to the window (Win32 specific). More...
|
HWND | getParentWindowHandle (void) |
| Retrieves a handle to the window's parent, or 0 if there is no parent. More...
|
bool | isUsingDirectDraw (void) |
| Returns true if this window is using DirectDraw. More...
|
DDDriver * | getDirectDrawDriver (void) |
| Retrieves a pointer to the DirectDraw wrapper object used to manage the window's surface. More...
|
LPDIRECTDRAWSURFACE7 | getDDFrontBuffer (void) |
| Returns a pointer to a DirectDraw surface containing the front buffer. More...
|
LPDIRECTDRAWSURFACE7 | getDDBackBuffer (void) |
| Returns a pointer to a DirectDraw surface containing the back buffer. More...
|
LPDIRECT3DDEVICE7 | getD3DDevice (void) |
| Returns a pointer to the Direct3D device that works with this window. More...
|
void | outputText (int x, int y, const String &text) |
| Overridden - see RenderTarget. More...
|
bool | requiresTextureFlipping () const |
void | getCustomAttribute (String name, void *pData) |
| Overridden - see RenderTarget. More...
|
void | writeContentsToFile (const String &filename) |
| Overridden - see RenderTarget. 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...
|
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 | createDDSurfaces (void) |
void | releaseDDSurfaces (void) |
void | restoreDDSurfaces (void) |
void | createDepthBuffer (void) |
void | windowMovedOrResized (void) |
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 |
bool | mIsUsingDirectDraw |
HWND | mHWnd |
HWND | mParentHWnd |
bool | mActive |
bool | mReady |
bool | mClosed |
RECT | rcBlitDest |
DDDriver * | mlpDDDriver |
LPDIRECTDRAWSURFACE7 | mlpDDSFront |
LPDIRECTDRAWSURFACE7 | mlpDDSBack |
LPDIRECT3DDEVICE7 | mlpD3DDevice |
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 |