"Initial commit to Gerrit"
[profile/ivi/cogl.git] / doc / reference / cogl-2.0-experimental / html / cogl-2.0-experimental-Indices.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Indices</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="Cogl 2.0 Reference Manual">
8 <link rel="up" href="cogl-buffer-layout-apis.html" title="Describing the layout of GPU Memory">
9 <link rel="prev" href="cogl-2.0-experimental-Vertex-Attributes.html" title="Vertex Attributes">
10 <link rel="next" href="cogl-primitive-apis.html" title="Geometry">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="cogl-2.0-experimental-Vertex-Attributes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="cogl-buffer-layout-apis.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">Cogl 2.0 Reference Manual</th>
21 <td><a accesskey="n" href="cogl-primitive-apis.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#cogl-2.0-experimental-Indices.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#cogl-2.0-experimental-Indices.description" class="shortcut">Description</a>
27 </td></tr>
28 </table>
29 <div class="refentry">
30 <a name="cogl-2.0-experimental-Indices"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="cogl-2.0-experimental-Indices.top_of_page"></a>Indices</span></h2>
34 <p>Indices</p>
35 </td>
36 <td valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsynopsisdiv">
39 <a name="cogl-2.0-experimental-Indices.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis"><span class="returnvalue">CoglIndices</span> *       <a class="link" href="cogl-2.0-experimental-Indices.html#cogl-indices-new" title="cogl_indices_new ()">cogl_indices_new</a>                    (<em class="parameter"><code><span class="type">CoglContext</span> *context</code></em>,
41                                                          <em class="parameter"><code><a href="../cogl/cogl-Vertex-Buffers.html#CoglIndicesType"><span class="type">CoglIndicesType</span></a> type</code></em>,
42                                                          <em class="parameter"><code>const <span class="type">void</span> *indices_data</code></em>,
43                                                          <em class="parameter"><code><span class="type">int</span> n_indices</code></em>);
44 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="cogl-2.0-experimental-Indices.html#cogl-is-indices" title="cogl_is_indices ()">cogl_is_indices</a>                     (<em class="parameter"><code><span class="type">void</span> *object</code></em>);
45 </pre>
46 </div>
47 <div class="refsect1">
48 <a name="cogl-2.0-experimental-Indices.description"></a><h2>Description</h2>
49 </div>
50 <div class="refsect1">
51 <a name="cogl-2.0-experimental-Indices.details"></a><h2>Details</h2>
52 <div class="refsect2">
53 <a name="cogl-indices-new"></a><h3>cogl_indices_new ()</h3>
54 <pre class="programlisting"><span class="returnvalue">CoglIndices</span> *       cogl_indices_new                    (<em class="parameter"><code><span class="type">CoglContext</span> *context</code></em>,
55                                                          <em class="parameter"><code><a href="../cogl/cogl-Vertex-Buffers.html#CoglIndicesType"><span class="type">CoglIndicesType</span></a> type</code></em>,
56                                                          <em class="parameter"><code>const <span class="type">void</span> *indices_data</code></em>,
57                                                          <em class="parameter"><code><span class="type">int</span> n_indices</code></em>);</pre>
58 </div>
59 <hr>
60 <div class="refsect2">
61 <a name="cogl-is-indices"></a><h3>cogl_is_indices ()</h3>
62 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            cogl_is_indices                     (<em class="parameter"><code><span class="type">void</span> *object</code></em>);</pre>
63 <p>
64 Gets whether the given object references a <span class="type">CoglIndices</span>.
65 </p>
66 <div class="variablelist"><table border="0">
67 <col align="left" valign="top">
68 <tbody>
69 <tr>
70 <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
71 <td>A <a class="link" href="cogl-2.0-experimental-The-Object-Interface.html#CoglObject" title="CoglObject"><span class="type">CoglObject</span></a> pointer</td>
72 </tr>
73 <tr>
74 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
75 <td>
76 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the object references a <span class="type">CoglIndices</span>
77 and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
78 </tr>
79 </tbody>
80 </table></div>
81 <p class="since">Since 1.10</p>
82 <p class="stability">Stability Level: Unstable</p>
83 </div>
84 </div>
85 </div>
86 <div class="footer">
87 <hr>
88           Generated by GTK-Doc V1.18.1</div>
89 </body>
90 </html>