#include <OgreWin32RenderTexture.h>
Inheritance diagram for Ogre::Win32RenderTexture:
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 Member Functions | |
Win32RenderTexture (Win32GLSupport &glsupport, const String &name, unsigned int width, unsigned int height, TextureType texType, PixelFormat internalFormat, const NameValuePairList *miscParams, bool useBind) | |
~Win32RenderTexture () | |
bool | requiresTextureFlipping () const |
virtual void | writeContentsToFile (const String &filename) |
Writes the current contents of the render target to the named file. | |
virtual const String & | getName (void) const |
Retrieve target's name. | |
virtual void | getMetrics (unsigned int &width, unsigned int &height, unsigned int &colourDepth) |
Retrieve information about the render target. | |
virtual unsigned int | getWidth (void) const |
virtual unsigned int | getHeight (void) const |
virtual unsigned int | getColourDepth (void) const |
virtual void | update (void) |
Tells the target to update it's contents. | |
virtual Viewport * | addViewport (Camera *cam, int ZOrder=0, float left=0.0f, float top=0.0f, float width=1.0f, float height=1.0f) |
Adds a viewport to the rendering target. | |
virtual unsigned short | getNumViewports (void) const |
Returns the number of viewports attached to this target. | |
virtual Viewport * | getViewport (unsigned short index) |
Retrieves a pointer to the viewport with the given index. | |
virtual void | removeViewport (int ZOrder) |
Removes a viewport at a given ZOrder. | |
virtual void | removeAllViewports (void) |
Removes all viewports on this target. | |
virtual void | getStatistics (float &lastFPS, float &avgFPS, float &bestFPS, float &worstFPS) const |
Retieves details of current rendering performance. | |
virtual const FrameStats & | getStatistics (void) const |
virtual float | getLastFPS () const |
Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered. | |
virtual float | getAverageFPS () const |
Individual stats access - gets the average frames per second (FPS) since call to Root::startRendering. | |
virtual float | getBestFPS () const |
Individual stats access - gets the best frames per second (FPS) since call to Root::startRendering. | |
virtual float | getWorstFPS () const |
Individual stats access - gets the worst frames per second (FPS) since call to Root::startRendering. | |
virtual float | getBestFrameTime () const |
Individual stats access - gets the best frame time. | |
virtual float | getWorstFrameTime () const |
Individual stats access - gets the worst frame time. | |
virtual void | resetStatistics (void) |
Resets saved frame-rate statistices. | |
virtual void | getCustomAttribute (const String &name, void *pData) |
Gets a custom (maybe platform-specific) attribute. | |
virtual void | setDebugText (const String &text) |
Adds debug text to this window. | |
const String & | getDebugText () const |
Returns the debug text. | |
virtual void | addListener (RenderTargetListener *listener) |
Add a listener to this RenderTarget which will be called back before & after rendering. | |
virtual void | removeListener (RenderTargetListener *listener) |
Removes a RenderTargetListener previously registered using addListener. | |
virtual void | removeAllListeners (void) |
Removes all listeners from this instance. | |
virtual void | setPriority (uchar priority) |
Sets the priority of this render target in relation to the others. | |
virtual uchar | getPriority () const |
Gets the priority of a render target. | |
virtual bool | isActive () const |
Used to retrieve or set the active state of the render target. | |
virtual void | setActive (bool state) |
Used to set the active state of the render target. | |
virtual void | setAutoUpdated (bool autoupdate) |
Sets whether this target should be automatically updated if Ogre's rendering loop or Root::_updateAllRenderTargets is being used. | |
virtual bool | isAutoUpdated (void) const |
Gets whether this target is automatically updated if Ogre's rendering loop or Root::_updateAllRenderTargets is being used. | |
virtual String | writeContentsToTimestampedFile (const String &filenamePrefix, const String &filenameSuffix) |
Writes the current contents of the render target to the (PREFIX)(time-stamp)(SUFFIX) file. | |
virtual size_t | getTriangleCount (void) const |
Gets the number of triangles rendered in the last update() call. | |
virtual void | _notifyCameraRemoved (const Camera *cam) |
Utility method to notify a render target that a camera has been removed, incase it was referring to it as a viewer. | |
Protected Types | |
typedef std::map< int, Viewport *, std::less< int > > | ViewportList |
typedef std::vector< RenderTargetListener * > | RenderTargetListenerList |
Protected Member Functions | |
virtual void | _copyToTexture () |
void | createPBuffer () |
internal method for firing events | |
void | destroyPBuffer () |
virtual void | firePostUpdate () |
internal method for firing events | |
void | updateStats (void) |
virtual void | firePreUpdate (void) |
internal method for firing events | |
virtual void | fireViewportPreUpdate (Viewport *vp) |
internal method for firing events | |
virtual void | fireViewportPostUpdate (Viewport *vp) |
internal method for firing events | |
Protected Attributes | |
Win32GLSupport & | mGLSupport |
HDC | mHDC |
HGLRC | mGlrc |
HPBUFFERARB | mPBuffer |
Win32Context * | mContext |
bool | mUseBind |
GLTexturePtr | mGLTexture |
TexturePtr | mTexture |
The texture that gets accesses by the rest of the API. | |
PixelFormat | mInternalFormat |
String | mName |
The name of this target. | |
uchar | mPriority |
The priority of the render target. | |
unsigned int | mWidth |
unsigned int | mHeight |
unsigned int | mColourDepth |
bool | mIsDepthBuffered |
FrameStats | mStats |
Timer * | mTimer |
String | mDebugText |
unsigned long | mLastSecond |
unsigned long | mLastTime |
size_t | mFrameCount |
bool | mActive |
bool | mAutoUpdate |
ViewportList | mViewportList |
List of viewports, map on Z-order. | |
RenderTargetListenerList | mListeners |
|
Definition at line 311 of file OgreRenderTarget.h. |
|
Definition at line 307 of file OgreRenderTarget.h. |
|
Definition at line 58 of file OgreRenderTarget.h. |
|
|
|
|
|
Reimplemented from Ogre::GLRenderTexture. |
|
Utility method to notify a render target that a camera has been removed, incase it was referring to it as a viewer.
|
|
Add a listener to this RenderTarget which will be called back before & after rendering.
|
|
Adds a viewport to the rendering target.
|
|
internal method for firing events
|
|
|
|
internal method for firing events
Reimplemented from Ogre::RenderTarget. |
|
internal method for firing events
|
|
internal method for firing events
|
|
internal method for firing events
|
|
Individual stats access - gets the average frames per second (FPS) since call to Root::startRendering.
|
|
Individual stats access - gets the best frames per second (FPS) since call to Root::startRendering.
|
|
Individual stats access - gets the best frame time.
|
|
|
|
Gets a custom (maybe platform-specific) attribute.
Reimplemented in Ogre::D3D7RenderWindow, Ogre::D3D7RenderTexture, Ogre::D3D9RenderWindow, Ogre::D3D9RenderTexture, Ogre::GLXWindow, Ogre::GTKWindow, and Ogre::Win32Window. |
|
Returns the debug text.
|
|
|
|
Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered.
|
|
Retrieve information about the render target.
|
|
Retrieve target's name.
|
|
Returns the number of viewports attached to this target.
|
|
Gets the priority of a render target.
Definition at line 239 of file OgreRenderTarget.h. References Ogre::uchar. |
|
|
|
Retieves details of current rendering performance.
|
|
Gets the number of triangles rendered in the last update() call.
|
|
Retrieves a pointer to the viewport with the given index.
|
|
|
|
Individual stats access - gets the worst frames per second (FPS) since call to Root::startRendering.
|
|
Individual stats access - gets the worst frame time.
|
|
Used to retrieve or set the active state of the render target.
Reimplemented in Ogre::D3D7RenderWindow, Ogre::D3D9RenderWindow, Ogre::GLXWindow, Ogre::GTKWindow, Ogre::SDLWindow, and Ogre::Win32Window. |
|
Gets whether this target is automatically updated if Ogre's rendering loop or Root::_updateAllRenderTargets is being used.
|
|
Removes all listeners from this instance.
|
|
Removes all viewports on this target.
|
|
Removes a RenderTargetListener previously registered using addListener.
|
|
Removes a viewport at a given ZOrder.
|
|
Implements Ogre::RenderTarget. Definition at line 157 of file OgreGLTexture.h. |
|
Resets saved frame-rate statistices.
|
|
Used to set the active state of the render target.
Reimplemented in Ogre::D3D9RenderWindow, and Ogre::Win32Window. |
|
Sets whether this target should be automatically updated if Ogre's rendering loop or Root::_updateAllRenderTargets is being used.
|
|
Adds debug text to this window.
|
|
Sets the priority of this render target in relation to the others.
Definition at line 237 of file OgreRenderTarget.h. References Ogre::uchar. |
|
Tells the target to update it's contents.
Reimplemented in Ogre::RenderWindow, and Ogre::D3D9RenderWindow. |
|
|
|
Writes the current contents of the render target to the named file.
Implements Ogre::RenderTarget. |
|
Writes the current contents of the render target to the (PREFIX)(time-stamp)(SUFFIX) file.
|
|
Reimplemented in Ogre::D3D7RenderWindow, Ogre::D3D9RenderWindow, Ogre::GLXWindow, Ogre::SDLWindow, and Ogre::Win32Window. Definition at line 302 of file OgreRenderTarget.h. |
|
Definition at line 303 of file OgreRenderTarget.h. |
|
Definition at line 290 of file OgreRenderTarget.h. |
|
Definition at line 56 of file OgreWin32RenderTexture.h. |
|
Definition at line 297 of file OgreRenderTarget.h. |
|
Definition at line 300 of file OgreRenderTarget.h. |
|
Definition at line 54 of file OgreWin32RenderTexture.h. |
|
Definition at line 52 of file OgreWin32RenderTexture.h. |
|
Definition at line 160 of file OgreGLTexture.h. Referenced by Ogre::GLRenderTexture::GLRenderTexture(). |
|
Definition at line 53 of file OgreWin32RenderTexture.h. |
|
Definition at line 289 of file OgreRenderTarget.h. |
|
Definition at line 48 of file OgreRenderTexture.h. |
|
Definition at line 291 of file OgreRenderTarget.h. |
|
Definition at line 298 of file OgreRenderTarget.h. |
|
Definition at line 299 of file OgreRenderTarget.h. |
|
Definition at line 312 of file OgreRenderTarget.h. |
|
The name of this target.
Definition at line 284 of file OgreRenderTarget.h. |
|
Definition at line 55 of file OgreWin32RenderTexture.h. |
|
The priority of the render target.
Definition at line 286 of file OgreRenderTarget.h. |
|
Definition at line 294 of file OgreRenderTarget.h. |
|
The texture that gets accesses by the rest of the API.
Definition at line 47 of file OgreRenderTexture.h. |
|
Definition at line 296 of file OgreRenderTarget.h. |
|
Definition at line 57 of file OgreWin32RenderTexture.h. |
|
List of viewports, map on Z-order.
Definition at line 309 of file OgreRenderTarget.h. |
|
Definition at line 288 of file OgreRenderTarget.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Wed Feb 23 00:31:09 2005