![]() |
![]() |
![]() |
Grits Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct GritsOpenGL; struct GritsOpenGLClass; GritsViewer * grits_opengl_new (GritsPlugins *plugins
,GritsPrefs *prefs
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkDrawingArea +----GritsViewer +----GritsOpenGL
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 requires (at least) OpenGL 2.0.
struct GritsOpenGLClass { GritsViewerClass parent_class; /* class members */ };
GritsViewer * grits_opengl_new (GritsPlugins *plugins
,GritsPrefs *prefs
);
Create a new OpenGL renderer.
|
the plugins store to use |
|
the preferences object to use |
Returns : |
the new GritsOpenGL |