12/02/2005

Ghost

Here is my understanding of GHOST. At the beginning, there was the Big Bang, then the Earth, then Human beings…and then came the wonderful idea to write Blender!
But Blender needed a “good head” to control events, windows, keys, mouse, etc…. Lot of candidates wanted to be nominated for this task, the famous GLUT participate also to the challenge… but GLUT failed in the fight and the winner was:

GHOST

The first condition before running BlenderCE was to have a functional GHOST implementation. This library is coded in such a smart way that it was not necessary to write everything from scratch to make it work on my PocketPC. Only *Win32.cpp files were adapted to have *WinCE.cpp file.

GHOST implements the metaphors we will use for our PocketPC. For example, we emulate today the shift, alt and control button with 3 hardware keys. The left button is a stylus click and the right button is a stylus click with an hardware key activated. The keyboard (SIP) works fine with GHOST (see OpenGL section also) but the use of a keyboard on an embedded device should be examined in the future. Today, GHOST behaves well with the stylus as a mouse but cursors are not supported. We should keep in mind that Blender has a fantastic gesture motion system that is the ultimate solution for embedded devices.
Concerning windows, GHOST seems to act in a proper way. On a PocketPC, there is no real notion of maximizing or reducing windows. All windows will be maximized.
All these notions are coded in:
  • GHOST_WindowWinCE.cpp for windows and OpenGL (ES) management
  • GHOST_SystemWinCE.cpp for everything else (including event management)
Finally, this library is the entry point to test all king of work displaying something. Thus, GHOST is tested thanks to any OpenGL tests provided (see OpenGL section), including the “Gear test” or the “Monkey test” (you are not dreaming, you can see Suzanne on your screen :=) ). For the moment, the “Multitest” is not working so good because I didn’t really adapted it.

The first introduction I read about GHOST is very good and I advise anyone that wants to dance with GHOST to read this.

Don’t hesitate to share any comments.
Salvatore

11:00 Posted in 2 - Ghost | Permalink | Comments (0) | Email this

Previous 1 2 3 4 5 6 7 8