Difference between revisions of "User:Seldon/GSoC2007-ProjectDiary"

From ScummVM :: Wiki
Jump to navigation Jump to search
Line 28: Line 28:
|  style='color:green;border-left:none' | Audio::Mixer *getMixer
|  style='color:green;border-left:none' | Audio::Mixer *getMixer
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual bool
|  height=18 style='color:green;height:13.5pt' | virtual bool getFeatureState
getFeatureState
|  style='color:green;border-left:none' | bool getFeatureState
|  style='color:green;border-left:none' | bool getFeatureState
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 44: Line 43:
|  style='color:green;border-left:none' | bool pollEvent
|  style='color:green;border-left:none' | bool pollEvent
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual bool
|  height=18 style='color:green;height:13.5pt' | virtual bool setGraphicsMode
setGraphicsMode
|  style='color:green;border-left:none' | bool setGraphicsMode
|  style='color:green;border-left:none' | bool setGraphicsMode
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 51: Line 49:
|  style='color:green;border-left:none' | bool showMouse
|  style='color:green;border-left:none' | bool showMouse
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual
|  height=18 style='color:green;height:13.5pt' | virtual Common::EventManager *getEventManager
Common::EventManager *getEventManager
|  style='color:green;border-left:none' |  
|  style='color:green;border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual
|  height=18 style='color:green;height:13.5pt' | virtual Common::SaveFileManager *getSavefileManager
Common::SaveFileManager *getSavefileManager
|  style='color:green;border-left:none' | Common::SaveFileManager *getSavefileManager
|  style='color:green;border-left:none' | Common::SaveFileManager *getSavefileManager
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual
|  height=18 style='color:green;height:13.5pt' | virtual Common::TimerManager *getTimerManager
Common::TimerManager *getTimerManager
|  style='color:green;border-left:none' | Common::TimerManager *getTimerManager
|  style='color:green;border-left:none' | Common::TimerManager *getTimerManager
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual const
|  height=18 style='color:green;height:13.5pt' | virtual const GraphicsMode *getSupportedGraphicsModes
GraphicsMode *getSupportedGraphicsModes
|  style='color:green;border-left:none' | const GraphicsMode *getSupportedGraphicsModes
|  style='color:green;border-left:none' | const GraphicsMode *getSupportedGraphicsModes
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 70: Line 64:
|  style='color:green;border-left:none' | virtual Graphics::Surface *lockScreen
|  style='color:green;border-left:none' | virtual Graphics::Surface *lockScreen
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int getDefaultGraphicsMode
getDefaultGraphicsMode
|  style='color:green;border-left:none' | int getDefaultGraphicsMode
|  style='color:green;border-left:none' | int getDefaultGraphicsMode
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int getGraphicsMode
getGraphicsMode
|  style='color:green;border-left:none' | int getGraphicsMode
|  style='color:green;border-left:none' | int getGraphicsMode
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int getOutputSampleRate
getOutputSampleRate
|  style='color:green;border-left:none' | int getOutputSampleRate
|  style='color:green;border-left:none' | int getOutputSampleRate
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int getScreenChangeID
getScreenChangeID
|  style='color:green;border-left:none' |  
|  style='color:green;border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int overlayToScreenX
overlayToScreenX
|  style='color:green;border-left:none' | int overlayToScreenX
|  style='color:green;border-left:none' | int overlayToScreenX
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int overlayToScreenY
overlayToScreenY
|  style='color:green;border-left:none' | int overlayToScreenY
|  style='color:green;border-left:none' | int overlayToScreenY
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int screenToOverlayX
screenToOverlayX
|  style='color:green;border-left:none' | int screenToOverlayX
|  style='color:green;border-left:none' | int screenToOverlayX
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int
|  height=18 style='color:green;height:13.5pt' | virtual int screenToOverlayY
screenToOverlayY
|  style='color:green;border-left:none' | int screenToOverlayY
|  style='color:green;border-left:none' | int screenToOverlayY
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 105: Line 91:
|  style='color:green;border-left:none' | int16 getHeight
|  style='color:green;border-left:none' | int16 getHeight
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int16
|  height=18 style='color:green;height:13.5pt' | virtual int16 getOverlayHeight
getOverlayHeight
|  style='color:green;border-left:none' | int16 getOverlayHeight
|  style='color:green;border-left:none' | int16 getOverlayHeight
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual int16
|  height=18 style='color:green;height:13.5pt' | virtual int16 getOverlayWidth
getOverlayWidth
|  style='color:green;border-left:none' | int16 getOverlayWidth
|  style='color:green;border-left:none' | int16 getOverlayWidth
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 116: Line 100:
|  style='color:green;border-left:none' | int16 getWidth
|  style='color:green;border-left:none' | int16 getWidth
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual MutexRef
|  height=18 style='color:green;height:13.5pt' | virtual MutexRef createMutex
createMutex
|  style='color:green;border-left:none' | MutexRef createMutex
|  style='color:green;border-left:none' | MutexRef createMutex
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual OverlayColor
|  height=18 style='color:green;height:13.5pt' | virtual OverlayColor ARGBToColor
ARGBToColor
|  style='color:green;border-left:none' | OverlayColor ARGBToColor
|  style='color:green;border-left:none' | OverlayColor ARGBToColor
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual OverlayColor
|  height=18 style='color:green;height:13.5pt' | virtual OverlayColor RGBToColor
RGBToColor
|  style='color:green;border-left:none' | OverlayColor RGBToColor
|  style='color:green;border-left:none' | OverlayColor RGBToColor
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 131: Line 112:
|  style='color:green;border-left:none' | uint32 getMillis
|  style='color:green;border-left:none' | uint32 getMillis
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void beginGFXTransaction
beginGFXTransaction
|  style='border-left:none' |  
|  style='border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void clearFocusRectangle
clearFocusRectangle
|  style='border-left:none' |  
|  style='border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 151: Line 130:
|  style='color:green;border-left:none' | void colorToRGB
|  style='color:green;border-left:none' | void colorToRGB
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void copyRectToOverlay
copyRectToOverlay
|  style='color:green;border-left:none' | void copyRectToOverlay
|  style='color:green;border-left:none' | void copyRectToOverlay
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void copyRectToScreen
copyRectToScreen
|  style='color:green;border-left:none' | void copyRectToScreen
|  style='color:green;border-left:none' | void copyRectToScreen
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 165: Line 142:
|  style='color:green;border-left:none' | void deleteMutex
|  style='color:green;border-left:none' | void deleteMutex
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void disableCursorPalette
disableCursorPalette
|  style='color:green;border-left:none' | void disableCursorPalette
|  style='color:green;border-left:none' | void disableCursorPalette
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void displayMessageOnOSD
displayMessageOnOSD
|  style='color:green;border-left:none' |  
|  style='color:green;border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void endGFXTransaction
endGFXTransaction
|  style='color:green;border-left:none' |  
|  style='color:green;border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 201: Line 175:
|  style='color:green;border-left:none' | void quit
|  style='color:green;border-left:none' | void quit
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void setCursorPalette
setCursorPalette
|  style='color:green;border-left:none' | void setCursorPalette
|  style='color:green;border-left:none' | void setCursorPalette
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void setFeatureState
setFeatureState
|  style='color:green;border-left:none' | void setFeatureState
|  style='color:green;border-left:none' | void setFeatureState
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void setFocusRectangle
setFocusRectangle
|  style='color:green;border-left:none' |  
|  style='color:green;border-left:none' |  
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void setMouseCursor
setMouseCursor
|  style='color:green;border-left:none' | void setMouseCursor
|  style='color:green;border-left:none' | void setMouseCursor
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
Line 223: Line 193:
|  style='color:green;border-left:none' | void setShakePos
|  style='color:green;border-left:none' | void setShakePos
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'
|  height=18 style='color:green;height:13.5pt' | virtual void
|  height=18 style='color:green;height:13.5pt' | virtual void setWindowCaption
setWindowCaption
|  style='color:green;border-left:none' | void setWindowCaption
|  style='color:green;border-left:none' | void setWindowCaption
|-  height=18 style='height:13.5pt'
|-  height=18 style='height:13.5pt'

Revision as of 12:07, 4 July 2007

2007-06-09 (Saturday) - analyzing current backend code

Today I am starting my Small Devices Backend project diary. Here I'll be posting all of the current progress information.

I have already ran a pocketSCUMM port on ACER n311 pocket PC. Now I am analyzing the current backend code.

2007-07-01 (Sunday) - back

I am finally back to the project after a prolonged exams period at the two Universities I am currently studying, and planning to catch with all the work on backends.

I have talked to _sev: we've successfully resolved some linker errors over the TightVNC - all that had to be done is to change the order of library paths. Funny. So, the most important tasks for right now are:

  • come up with the description of current backends implementation;
  • study the new idea of events to replace engine specific keymapping code in the backends ( [Scummvm-devel] RFC: Flexible keymapping via new EVENT_ (post 0.10) by Max)

2007-07-03 (Tuesday) - current backend arhitecture

Yesterday and today I went through all backend implementations (classes that extend OSystem). I gathered the information about all methods in OSystem class hierarchy and presented it the form of tables. There one can easily see all of the OSystem virtual functions, their overriding counterparts in backend implementations, as well backend specific functions. Based on this information it is easy to see what are the common methods for all backends, which of them are simply duplicated, etc.

Legend:


OSystem OSystem_Dreamcast : public OSystem
virtual Audio::Mixer *getMixer Audio::Mixer *getMixer
virtual bool getFeatureState bool getFeatureState
virtual bool hasFeature bool hasFeature
virtual bool openCD bool openCD
virtual bool pollCD bool pollCD
virtual bool pollEvent bool pollEvent
virtual bool setGraphicsMode bool setGraphicsMode
virtual bool showMouse bool showMouse
virtual Common::EventManager *getEventManager  
virtual Common::SaveFileManager *getSavefileManager Common::SaveFileManager *getSavefileManager
virtual Common::TimerManager *getTimerManager Common::TimerManager *getTimerManager
virtual const GraphicsMode *getSupportedGraphicsModes const GraphicsMode *getSupportedGraphicsModes
virtual Graphics::Surface *lockScreen virtual Graphics::Surface *lockScreen
virtual int getDefaultGraphicsMode int getDefaultGraphicsMode
virtual int getGraphicsMode int getGraphicsMode
virtual int getOutputSampleRate int getOutputSampleRate
virtual int getScreenChangeID  
virtual int overlayToScreenX int overlayToScreenX
virtual int overlayToScreenY int overlayToScreenY
virtual int screenToOverlayX int screenToOverlayX
virtual int screenToOverlayY int screenToOverlayY
virtual int16 getHeight int16 getHeight
virtual int16 getOverlayHeight int16 getOverlayHeight
virtual int16 getOverlayWidth int16 getOverlayWidth
virtual int16 getWidth int16 getWidth
virtual MutexRef createMutex MutexRef createMutex
virtual OverlayColor ARGBToColor OverlayColor ARGBToColor
virtual OverlayColor RGBToColor OverlayColor RGBToColor
virtual uint32 getMillis uint32 getMillis
virtual void beginGFXTransaction  
virtual void clearFocusRectangle  
virtual void clearOverlay void clearOverlay
virtual void clearScreen void clearScreen
virtual void colorToARGB void colorToARGB
virtual void colorToRGB void colorToRGB
virtual void copyRectToOverlay void copyRectToOverlay
virtual void copyRectToScreen void copyRectToScreen
virtual void delayMillis void delayMillis
virtual void deleteMutex void deleteMutex
virtual void disableCursorPalette void disableCursorPalette
virtual void displayMessageOnOSD  
virtual void endGFXTransaction  
virtual void grabOverlay void grabOverlay
virtual void grabPalette void grabPalette
virtual void hideOverlay void hideOverlay
virtual void initBackend virtual void initBackend
virtual void initSize void initSize
virtual void lockMutex void lockMutex
virtual void playCD void playCD
virtual void quit void quit
virtual void setCursorPalette void setCursorPalette
virtual void setFeatureState void setFeatureState
virtual void setFocusRectangle  
virtual void setMouseCursor void setMouseCursor
virtual void setPalette void setPalette
virtual void setShakePos void setShakePos
virtual void setWindowCaption void setWindowCaption
virtual void showOverlay void showOverlay
virtual void stopCD void stopCD
virtual void unlockMutex void unlockMutex
virtual void unlockScreen virtual void unlockScreen
virtual void updateCD void updateCD
virtual void updateScreen void updateScreen
virtual void warpMouse void warpMouse
   
  void mouseToSoftKbd
   
  void checkSound
  void drawMouse
  void setScaling
  Common::SaveFileManager *createSavefileManager