Ignore:
Timestamp:
08/03/05 14:12:41 (20 years ago)
Author:
mattausch
Message:

changed to ogre 103
added readme

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  
    4646                    bool fullScreen, const NameValuePairList *miscParams); 
    4747                void destroy(void); 
    48                 bool isActive() const { return mActive; } 
     48                bool isVisible() const; 
    4949                bool isClosed() const { return mClosed; } 
    50                 void reposition( int left, int top ) {} 
     50                void reposition(int left, int top); 
    5151                void resize( unsigned int width, unsigned int height ); 
    5252                void swapBuffers( bool waitForVSync = true ); 
     
    6161                */ 
    6262                void writeContentsToFile(const String& filename); 
     63                bool requiresTextureFlipping() const { return false; } 
    6364 
     65                // Method for dealing with resize / move & 3d library 
     66                void windowMovedOrResized(); 
    6467#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    6568                uchar *getBufferContents(int &dimx, int &dimy); 
    6669#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    6770 
    68                 bool requiresTextureFlipping() const { return false; } 
    69  
    70                 // Method for dealing with resize / move & 3d library 
    71                 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; } 
    7671                /// Get the presentation parameters used with this window 
    7772                D3DPRESENT_PARAMETERS* getPresentationParameters(void)  
    7873                { return &md3dpp; } 
     74 
    7975                /// @copydoc RenderTarget::update 
    80                 void update(void); 
     76                void update(); 
    8177 
    8278                /** Create (or recreate) the D3D device or SwapChain for this window. 
    8379                */ 
    84                 void createD3DResources(void); 
     80                void createD3DResources(); 
     81         
     82                /** Destroy the D3D device or SwapChain for this window. 
     83                */ 
     84                void destroyD3DResources(); 
    8585         
    8686        protected: 
     
    8888                D3D9Driver *mDriver;                    // D3D9 driver 
    8989                HWND    mHWnd;                                  // Win32 Window handle 
    90                 bool    mActive;                                // Is active i.e. visible 
    91                 bool    mReady;                                 // Is ready i.e. available for update 
     90                bool    mIsExternal;                    // window not created by Ogre 
     91                bool    mSizing; 
    9292                bool    mClosed; 
    9393                bool    mIsSwapChain;                   // Is this a secondary window? 
  • trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/include/OgreD3D9Texture.h

    r154 r193  
    161161                static PixelFormat _getClosestSupportedPF(PixelFormat ogrePF); 
    162162 
    163                 /// For dealing with lost devices - release the resource if in the default pool 
    164                 void releaseIfDefaultPool(void); 
    165                 /// For dealing with lost devices - recreate the resource if in the default pool 
    166                 void recreateIfDefaultPool(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); 
    167167 
    168168    }; 
     
    243243                (mName + "_PRIVATE##", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,  
    244244                texType, mWidth, mHeight, 0, internalFormat, TU_RENDERTARGET ); 
     245                        mPrivateTex->load(); 
    245246        } 
    246247                 
Note: See TracChangeset for help on using the changeset viewer.