Blender V2.61 - r43446



GHOST is yet another acronym. It stands for "Generic Handy Operating System Toolkit". It has been created to replace the OpenGL utility tool kit GLUT. GLUT was used in Blender until the point that Blender needed to be ported to Apple's Mac OSX. Blender needed a number of modifications in GLUT to work but the GLUT sources for OSX were unavailable at the time. The decision was made to build our own replacement for GLUT. In those days, NaN Technologies BV was the company that developed Blender.

Enough history. What does GHOST have to offer?
In short: everything that Blender needed from GLUT to run on all it's supported operating systems and some extra's. This includes :

Font management has been moved to a separate library.




GHOST has two programming interfaces:

GHOST itself is writtem in C++ and the C-API is a wrapper around the C++ API.

The C++ API consists of the following files:

For an example of using the C++-API, have a look at the GHOST_C-Test.cpp program in the ?/ghost/test/gears/ directory.


To use GHOST in programs written in C, include the file GHOST_C-API.h in your program. This file includes the GHOST_Types.h file for all GHOST types and defines functions that give you access to the same functionality present in the C++ API.
For an example of using the C-API, have a look at the GHOST_C-Test.c program in the ?/ghost/test/gears/ directory.

Work in progress

write WIP section