Difference between revisions of "SDL gfx"

From X-Moto
Jump to: navigation, search
m (Project short term goals)
m (Current rendering engines)
Line 9: Line 9:
  
 
== Current rendering engines ==
 
== Current rendering engines ==
 +
[[Image:Xmoto-0.2.3_opengl_normal.png|thumb|xmoto in normal opengl mode]]
 +
[[Image:Xmoto-0.2.3_opengl_ugly.png|thumb|xmoto in ugly opengl mode]]
  
 
There are currently two rendering modes a normal mode and an ugly mode. Both are opengl based modes
 
There are currently two rendering modes a normal mode and an ugly mode. Both are opengl based modes
Line 15: Line 17:
 
The two rendering modes currently can be switched at runtime and are implemented by having if/else statements
 
The two rendering modes currently can be switched at runtime and are implemented by having if/else statements
 
in the code.
 
in the code.
 
  
 
== VDraw and the GUI framework ==
 
== VDraw and the GUI framework ==

Revision as of 13:00, 5 December 2006

SDL_gfx Rationale

OpenGL is the default graphics rendering engine for xmoto. It provides a nice look to the game. The biggest problem we have with OpenGL is that it requires special hard- and software. We are Therefore currently writing a second graphical front-end to xmoto using the SDL_gfx[1] library

We expect the SDL_gfx front end to become a good alternative for the OpenGL frontend but not a replacement. In an ideal world we would like to be able to switch between the renderings engines at runtime.

Current rendering engines

xmoto in normal opengl mode
xmoto in ugly opengl mode

There are currently two rendering modes a normal mode and an ugly mode. Both are opengl based modes that require good working opengl hardware because software OpenGL is not fast enough for good gameplay. We think the SDL_gfx rendering frontend should look better then the ulgy OpenGL rendering engine. The two rendering modes currently can be switched at runtime and are implemented by having if/else statements in the code.

VDraw and the GUI framework

The xmoto game contains a GUI framework and a 2d drawing library (VDraw) built on top op opengl. They provide some abstraction of the drawing.

Project short term goals

  • xmoto_hack on the Nokia 770 (16bpp/800x480) to learn what the problems are
  • give information about the performance , lessons learned
  • document new code
  • find people to port to different platform