mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
glarea: Add some details to the docs
Mention that the rendering is integrated into the GTK scene graph as a texture and that the initial framebuffer contents are transparent. Fixes: #6317
This commit is contained in:
parent
df2cdb6913
commit
9c228cc634
@ -47,6 +47,8 @@
|
||||
* `GtkGLArea` sets up its own [class@Gdk.GLContext], and creates a custom
|
||||
* GL framebuffer that the widget will do GL rendering onto. It also ensures
|
||||
* that this framebuffer is the default GL rendering target when rendering.
|
||||
* The completed rendering is integrated into the larger GTK scene graph as
|
||||
* a texture.
|
||||
*
|
||||
* In order to draw, you have to connect to the [signal@Gtk.GLArea::render]
|
||||
* signal, or subclass `GtkGLArea` and override the GtkGLAreaClass.render
|
||||
@ -64,6 +66,8 @@
|
||||
* The `render()` function will be called when the `GtkGLArea` is ready
|
||||
* for you to draw its content:
|
||||
*
|
||||
* The initial contents of the framebuffer are transparent.
|
||||
*
|
||||
* ```c
|
||||
* static gboolean
|
||||
* render (GtkGLArea *area, GdkGLContext *context)
|
||||
|
Loading…
Reference in New Issue
Block a user