Mercurial > parpg-source
changeset 152:76041ed90a5d
Updated settings to use the MouseSensitivity, MouseAcceleration, GLUseNPOT and GLUseFramebuffer options.
author | KarstenBock@gmx.net |
---|---|
date | Wed, 26 Oct 2011 13:01:49 +0200 |
parents | 4c11d9d8b19d |
children | 741d7d193bad |
files | application.py settings.py |
diffstat | 2 files changed, 25 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/application.py Fri Oct 21 13:39:40 2011 +0200 +++ b/application.py Wed Oct 26 13:01:49 2011 +0200 @@ -168,6 +168,7 @@ """ engineSetting = self.engine.getSettings() + assert(isinstance(engineSetting, fife.EngineSettings)) engineSetting.setDefaultFontGlyphs(self._setting.fife.FontGlyphs) engineSetting.setDefaultFontPath( '{0}/fonts/{1}'.format(self._setting.parpg.DataPath, @@ -179,6 +180,8 @@ engineSetting.setSDLRemoveFakeAlpha( self._setting.fife.SDLRemoveFakeAlpha ) + engineSetting.setGLUseFramebuffer(self._setting.fife.GLUseFramebuffer) + engineSetting.setGLUseNPOT(self._setting.fife.GLUseNPOT) engineSetting.setScreenWidth(self._setting.fife.ScreenWidth) engineSetting.setScreenHeight(self._setting.fife.ScreenHeight) engineSetting.setRenderBackend(self._setting.fife.RenderBackend) @@ -186,7 +189,11 @@ engineSetting.setVideoDriver(self._setting.fife.VideoDriver) engineSetting.setLightingModel(self._setting.fife.Lighting) engineSetting.setColorKeyEnabled(self._setting.fife.ColorKeyEnabled) - + engineSetting.setMouseSensitivity(self._setting.fife.MouseSensitivity) + engineSetting.setMouseAcceleration( + self._setting.fife.MouseAcceleration + ) + engineSetting.setColorKey(*[int(digit) for digit in self._setting.fife.ColorKey])
--- a/settings.py Fri Oct 21 13:39:40 2011 +0200 +++ b/settings.py Wed Oct 26 13:01:49 2011 +0200 @@ -340,16 +340,18 @@ # Video driver to use. (?) VideoDriver = "" -# Backend to use for graphics (OpenGL|SDL) +# Backend to use for graphics (OpenGL|OpenGLe|SDL) RenderBackend = OpenGL # Run the game in fullscreen mode or not. (True|False) FullScreen = False -# Screen Resolution's width. Not used if FullScreen is set to False (800|1024|etc) +# Screen Resolution's width. Not used if FullScreen is set to False +# (800|1024|etc) ScreenWidth = 1024 -# Screen Resolution's height. Not used if FullScreen is set to False (600|768|etc) +# Screen Resolution's height. Not used if FullScreen is set to False +# (600|768|etc) ScreenHeight = 768 # Screen DPI? (?) @@ -358,6 +360,18 @@ # ? (?) SDLRemoveFakeAlpha = 1 +# Use Framebuffer Objects (True|False) +GLUseFramebuffer = True + +# Use NPOT textures (True|False) +GLUseNPOT = True + +# The Sensitivity of the mouse. (-0.99 to 10.0) +MouseSensitivity = 0.0 + +# Sets whether the mouse should be accelerated. (True|False) +MouseAcceleration = False + # Subdirectory to load icons from (path) IconsPath = icons