New upstream version 3.24.4
This commit is contained in:
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a> *
|
||||
<a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkGLArea.html#gtk-gl-area-get-context" title="gtk_gl_area_get_context ()">gtk_gl_area_get_context</a> <span class="c_punctuation">()</span>
|
||||
@ -214,7 +214,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type">
|
||||
<a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *</td>
|
||||
<a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *</td>
|
||||
<td class="property_name"><a class="link" href="GtkGLArea.html#GtkGLArea--context" title="The “context” property">context</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
@ -252,7 +252,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="signal_type">
|
||||
<a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a>*</td>
|
||||
<a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a>*</td>
|
||||
<td class="signal_name"><a class="link" href="GtkGLArea.html#GtkGLArea-create-context" title="The “create-context” signal">create-context</a></td>
|
||||
<td class="signal_flags">Run Last</td>
|
||||
</tr>
|
||||
@ -310,7 +310,7 @@ GtkGLArea implements
|
||||
<div class="refsect1">
|
||||
<a name="GtkGLArea.description"></a><h2>Description</h2>
|
||||
<p><a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> is a widget that allows drawing with OpenGL.</p>
|
||||
<p><a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> sets up its own <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> for the window it creates, and
|
||||
<p><a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> sets up its own <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> for the window it creates, 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.</p>
|
||||
@ -318,7 +318,7 @@ when rendering.</p>
|
||||
or subclass <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> and override the <em class="parameter"><code>GtkGLAreaClass.render()</code></em>
|
||||
virtual
|
||||
function.</p>
|
||||
<p>The <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget ensures that the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> is associated with
|
||||
<p>The <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget ensures that the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> is associated with
|
||||
the widget's drawing area, and it is kept updated when the size and
|
||||
position of the drawing area changes.</p>
|
||||
<div class="refsect3">
|
||||
@ -400,7 +400,7 @@ for you to draw its content:</p>
|
||||
<p>If you need to initialize OpenGL state, e.g. buffer objects or
|
||||
shaders, you should use the <a class="link" href="GtkWidget.html#GtkWidget-realize" title="The “realize” signal"><span class="type">“realize”</span></a> signal; you
|
||||
can use the <a class="link" href="GtkWidget.html#GtkWidget-unrealize" title="The “unrealize” signal"><span class="type">“unrealize”</span></a> signal to clean up. Since the
|
||||
<a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> creation and initialization may fail, you will
|
||||
<a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> creation and initialization may fail, you will
|
||||
need to check for errors, using <a class="link" href="GtkGLArea.html#gtk-gl-area-get-error" title="gtk_gl_area_get_error ()"><code class="function">gtk_gl_area_get_error()</code></a>. An example
|
||||
of how to safely initialize the GL state is:</p>
|
||||
<div class="informalexample">
|
||||
@ -479,7 +479,7 @@ of how to safely initialize the GL state is:</p>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
<p>If you need to change the options for creating the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>
|
||||
<p>If you need to change the options for creating the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>
|
||||
you should use the <a class="link" href="GtkGLArea.html#GtkGLArea-create-context" title="The “create-context” signal"><span class="type">“create-context”</span></a> signal.</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -499,9 +499,9 @@ gtk_gl_area_new (<em class="parameter"><code><span class="type">void</span></cod
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-gl-area-get-context"></a><h3>gtk_gl_area_get_context ()</h3>
|
||||
<pre class="programlisting"><a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a> *
|
||||
gtk_gl_area_get_context (<em class="parameter"><code><a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> *area</code></em>);</pre>
|
||||
<p>Retrieves the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
<p>Retrieves the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-gl-area-get-context.parameters"></a><h4>Parameters</h4>
|
||||
@ -520,7 +520,7 @@ gtk_gl_area_get_context (<em class="parameter"><code><a class="link" href="GtkGL
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-gl-area-get-context.returns"></a><h4>Returns</h4>
|
||||
<p>the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>. </p>
|
||||
<p>the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
|
||||
@ -530,7 +530,7 @@ gtk_gl_area_get_context (<em class="parameter"><code><a class="link" href="GtkGL
|
||||
<a name="gtk-gl-area-make-current"></a><h3>gtk_gl_area_make_current ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_gl_area_make_current (<em class="parameter"><code><a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> *area</code></em>);</pre>
|
||||
<p>Ensures that the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
<p>Ensures that the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
is associated with
|
||||
the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a>.</p>
|
||||
<p>This function is automatically called before emitting the
|
||||
@ -1015,7 +1015,7 @@ gtk_gl_area_set_use_es (<em class="parameter"><code><a class="link" href="GtkGLA
|
||||
<em class="parameter"><code><span class="type">gboolean</span> use_es</code></em>);</pre>
|
||||
<p>Sets whether the <em class="parameter"><code>area</code></em>
|
||||
should create an OpenGL or an OpenGL ES context.</p>
|
||||
<p>You should check the capabilities of the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> before drawing
|
||||
<p>You should check the capabilities of the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> before drawing
|
||||
with either API.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-gl-area-set-use-es.parameters"></a><h4>Parameters</h4>
|
||||
@ -1141,9 +1141,9 @@ to redraw.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkGLArea--context"></a><h3>The <code class="literal">“context”</code> property</h3>
|
||||
<pre class="programlisting"> “context” <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *</pre>
|
||||
<p>The <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget.</p>
|
||||
<p>The <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget is responsible for creating the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>
|
||||
<pre class="programlisting"> “context” <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *</pre>
|
||||
<p>The <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget.</p>
|
||||
<p>The <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget is responsible for creating the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>
|
||||
instance. If you need to render with other kinds of buffers (stencil,
|
||||
depth, etc), use render buffers.</p>
|
||||
<p>Flags: Read</p>
|
||||
@ -1186,9 +1186,9 @@ target framebuffer.</p>
|
||||
<div class="refsect2">
|
||||
<a name="GtkGLArea--use-es"></a><h3>The <code class="literal">“use-es”</code> property</h3>
|
||||
<pre class="programlisting"> “use-es” <span class="type">gboolean</span></pre>
|
||||
<p>If set to <code class="literal">TRUE</code> the widget will try to create a <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> using
|
||||
<p>If set to <code class="literal">TRUE</code> the widget will try to create a <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> using
|
||||
OpenGL ES instead of OpenGL.</p>
|
||||
<p>See also: <a href="../html/GdkGLContext.html#gdk-gl-context-set-use-es"><code class="function">gdk_gl_context_set_use_es()</code></a></p>
|
||||
<p>See also: <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#gdk-gl-context-set-use-es"><code class="function">gdk_gl_context_set_use_es()</code></a></p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Default value: FALSE</p>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-22.html#api-index-3.22">3.22</a></p>
|
||||
@ -1198,7 +1198,7 @@ OpenGL ES instead of OpenGL.</p>
|
||||
<a name="GtkGLArea.signal-details"></a><h2>Signal Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkGLArea-create-context"></a><h3>The <code class="literal">“create-context”</code> signal</h3>
|
||||
<pre class="programlisting"><a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a>*
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="returnvalue">GdkGLContext</span></a>*
|
||||
user_function (<a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> *area,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>The ::create-context signal is emitted when the widget is being
|
||||
@ -1238,7 +1238,7 @@ of how the construction failed.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="GtkGLArea-create-context.returns"></a><h4>Returns</h4>
|
||||
<p>a newly created <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>;
|
||||
<p>a newly created <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a>;
|
||||
the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> widget will take ownership of the returned value. </p>
|
||||
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
</div>
|
||||
@ -1250,7 +1250,7 @@ the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">G
|
||||
<a name="GtkGLArea-render"></a><h3>The <code class="literal">“render”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
user_function (<a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> *area,
|
||||
<a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *context,
|
||||
<a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> *context,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>The ::render signal is emitted every time the contents
|
||||
of the <a class="link" href="GtkGLArea.html" title="GtkGLArea"><span class="type">GtkGLArea</span></a> should be redrawn.</p>
|
||||
@ -1274,7 +1274,7 @@ and the buffers are painted to the window once the emission terminates.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>context</p></td>
|
||||
<td class="parameter_description"><p>the <a href="../html/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk3/GdkGLContext.html#GdkGLContext-struct"><span class="type">GdkGLContext</span></a> used by <em class="parameter"><code>area</code></em>
|
||||
</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user