GritsOpenGL

GritsOpenGL — OpenGL based virtual globe

Synopsis

                    GritsOpenGL;
                    GritsOpenGLClass;
GritsViewer *       grits_opengl_new                    (GritsPlugins *plugins,
                                                         GritsPrefs *prefs);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkDrawingArea
                           +----GritsViewer
                                 +----GritsOpenGL

Implemented Interfaces

GritsOpenGL implements AtkImplementorIface and GtkBuildable.

Description

GritsOpenGL is the core rendering engine used by grits. Theoretically other renderers could be writte, but they have not been. GritsOpenGL uses the ROAM algorithm for updating surface mesh the planet. The only thing GritsOpenGL can actually render on it's own is a wireframe of a sphere.

GritsOpenGL relies on GtkGlExt and requires (at least) OpenGL 2.0.

Details

GritsOpenGL

typedef struct _GritsOpenGL GritsOpenGL;


GritsOpenGLClass

typedef struct {
	GritsViewerClass parent_class;

	/* class members */
} GritsOpenGLClass;


grits_opengl_new ()

GritsViewer *       grits_opengl_new                    (GritsPlugins *plugins,
                                                         GritsPrefs *prefs);

Create a new OpenGL renderer.

plugins :

the plugins store to use

prefs :

the preferences object to use

Returns :

the new GritsOpenGL