Re: Using Mesa (openGL) with GTK



Andrew Veliath <veliaa@frontiernet.net> writes:

> I wrote a gtk_gl_drawing_area widget for some of my GL test programs,

... I wrote a gtkGL, too.

gtkGL is a function/object/widget set for use GL easily with GTK.

gtkGL is available at
    http://www.sakuranet.or.jp/~aozasa/shige/dist/gtkGL-0.1.tar.gz

gtkGL includes one data object

 * GtkGLContext              GtkObject/GtkData/

gtkGL includes two widgets,

 * GtkGLWidget               GtkObject/GtkWidget/
 * GtkGLRenderingArea        GtkObject/GtkWidget/GtkGLWidget/

gtkGL functions,

 * void gtk_gl_begin (GtkGLContext *, GdkDrawable *)
 * void gtk_gl_end (GtkGLContext *, GdkDrawable *)
 * void gtk_gl_flush (GtkGLContext *)

    gl* wrapping functions and flush function.
    like,

        gtk_gl_begin(GtkGLContext *, GdkDrawable *)
        {
          glBegin(...)
          ...
          glEnd()
        }
        gtk_gl_end(GtkGLContext *, GdkDrawable *)
        gtk_gl_flush(GtkGLContext *, GdkDrawable *)

gtkGLContext functions,

  * GtkGLContext* gtk_gl_context_new (GdkVisual *)

gtkGLRenderingArea functions,

  * GtkGLRenderingArea* gtk_gl_rendering_area_new (GtkGLContext *)

  * void gtk_gl_begin_with_rendering_area (GtkGLRenderingArea *)
  * void gtk_gl_end_with_rendering_area (GtkGLRenderingArea *)
  * void gtk_gl_flush_with_rendering_area (GtkGLRenderingArea *)

        utility function for GtkGLRenderingArea

not all functions are shown here. gtkGL has more functions.

next version of gtkGL includes gdkGL
--
AOSASA Shigeru <aozasa@sakuranet.or.jp>
1b 24 28 42 40 44 3a 7b 1b 28 42 20 1b 24 28 42 4c 50 1b 28 42 # c-text



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]