- Timestamp:
- 08/03/05 14:12:41 (20 years ago)
- Location:
- trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/include/OgreD3D9RenderWindow.h
r153 r193 46 46 bool fullScreen, const NameValuePairList *miscParams); 47 47 void destroy(void); 48 bool is Active() const { return mActive; }48 bool isVisible() const; 49 49 bool isClosed() const { return mClosed; } 50 void reposition( int left, int top ) {}50 void reposition(int left, int top); 51 51 void resize( unsigned int width, unsigned int height ); 52 52 void swapBuffers( bool waitForVSync = true ); … … 61 61 */ 62 62 void writeContentsToFile(const String& filename); 63 bool requiresTextureFlipping() const { return false; } 63 64 65 // Method for dealing with resize / move & 3d library 66 void windowMovedOrResized(); 64 67 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 65 68 uchar *getBufferContents(int &dimx, int &dimy); 66 69 #endif // GTP_VISIBILITY_MODIFIED_OGRE 67 70 68 bool requiresTextureFlipping() const { return false; }69 70 // Method for dealing with resize / move & 3d library71 virtual void WindowMovedOrResized(void);72 73 bool isReady() const { return mReady; }74 void setReady(bool set) { mReady = set; }75 void setActive(bool set) { mActive = set; }76 71 /// Get the presentation parameters used with this window 77 72 D3DPRESENT_PARAMETERS* getPresentationParameters(void) 78 73 { return &md3dpp; } 74 79 75 /// @copydoc RenderTarget::update 80 void update( void);76 void update(); 81 77 82 78 /** Create (or recreate) the D3D device or SwapChain for this window. 83 79 */ 84 void createD3DResources(void); 80 void createD3DResources(); 81 82 /** Destroy the D3D device or SwapChain for this window. 83 */ 84 void destroyD3DResources(); 85 85 86 86 protected: … … 88 88 D3D9Driver *mDriver; // D3D9 driver 89 89 HWND mHWnd; // Win32 Window handle 90 bool m Active; // Is active i.e. visible91 bool m Ready; // Is ready i.e. available for update90 bool mIsExternal; // window not created by Ogre 91 bool mSizing; 92 92 bool mClosed; 93 93 bool mIsSwapChain; // Is this a secondary window? -
trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/include/OgreD3D9Texture.h
r154 r193 161 161 static PixelFormat _getClosestSupportedPF(PixelFormat ogrePF); 162 162 163 /// For dealing with lost devices - release the resource if in the default pool 164 voidreleaseIfDefaultPool(void);165 /// For dealing with lost devices - recreate the resource if in the default pool 166 voidrecreateIfDefaultPool(LPDIRECT3DDEVICE9 pDev);163 /// For dealing with lost devices - release the resource if in the default pool (and return true) 164 bool releaseIfDefaultPool(void); 165 /// For dealing with lost devices - recreate the resource if in the default pool (and return true) 166 bool recreateIfDefaultPool(LPDIRECT3DDEVICE9 pDev); 167 167 168 168 }; … … 243 243 (mName + "_PRIVATE##", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, 244 244 texType, mWidth, mHeight, 0, internalFormat, TU_RENDERTARGET ); 245 mPrivateTex->load(); 245 246 } 246 247
Note: See TracChangeset
for help on using the changeset viewer.