[aea89388] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c24e4de] | 7 | <!ENTITY cogl-download-http "&gnome-download-http;/cogl/1.20/cogl-&cogl-version;.tar.xz">
|
---|
| 8 | <!ENTITY cogl-download-ftp "&gnome-download-ftp;/cogl/1.20/cogl-&cogl-version;.tar.xz">
|
---|
| 9 | <!ENTITY cogl-md5sum "5b28897194d9ff76a574a9493d1f7ee0">
|
---|
[7ea83d7] | 10 | <!ENTITY cogl-size "1.6 MB">
|
---|
[c24e4de] | 11 | <!ENTITY cogl-buildsize "60 MB">
|
---|
| 12 | <!ENTITY cogl-time "1.2 SBU">
|
---|
[aea89388] | 13 | ]>
|
---|
| 14 |
|
---|
[ff5df153] | 15 | <sect1 id="cogl" xreflabel="Cogl-&cogl-version;">
|
---|
[aea89388] | 16 | <?dbhtml filename="cogl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[742b99e] | 23 | <title>Cogl-&cogl-version;</title>
|
---|
[aea89388] | 24 |
|
---|
| 25 | <indexterm zone="cogl">
|
---|
[983fc68] | 26 | <primary sortas="a-Cogl">Cogl</primary>
|
---|
[aea89388] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[742b99e] | 30 | <title>Introduction to Cogl</title>
|
---|
[aea89388] | 31 |
|
---|
[a2912ff] | 32 | <para>
|
---|
| 33 | <application>Cogl</application> is a modern 3D graphics API with associated
|
---|
| 34 | utility APIs designed to expose the features of 3D graphics hardware using
|
---|
| 35 | a direct state access API design, as opposed to the state-machine style
|
---|
| 36 | of OpenGL.
|
---|
| 37 | </para>
|
---|
[aea89388] | 38 |
|
---|
[2c95b08] | 39 | &lfs77_checked;
|
---|
[aea89388] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[a2912ff] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&cogl-download-http;"/>
|
---|
| 46 | </para>
|
---|
[aea89388] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[a2912ff] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&cogl-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[aea89388] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[a2912ff] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &cogl-md5sum;
|
---|
| 56 | </para>
|
---|
[aea89388] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[a2912ff] | 59 | <para>
|
---|
| 60 | Download size: &cogl-size;
|
---|
| 61 | </para>
|
---|
[aea89388] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[a2912ff] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &cogl-buildsize;
|
---|
| 66 | </para>
|
---|
[aea89388] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[a2912ff] | 69 | <para>
|
---|
| 70 | Estimated build time: &cogl-time;
|
---|
| 71 | </para>
|
---|
[aea89388] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[742b99e] | 75 | <bridgehead renderas="sect3">Cogl Dependencies</bridgehead>
|
---|
[aea89388] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[742b99e] | 78 | <para role="required">
|
---|
| 79 | <xref linkend="gdk-pixbuf"/>,
|
---|
[773db87] | 80 | <xref linkend="mesalib"/>, and
|
---|
[742b99e] | 81 | <xref linkend="pango"/>
|
---|
| 82 | </para>
|
---|
[aea89388] | 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[742b99e] | 85 | <para role="recommended">
|
---|
| 86 | <xref linkend="gobject-introspection"/>
|
---|
| 87 | </para>
|
---|
[b9a819c8] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[742b99e] | 90 | <para role="optional">
|
---|
[a27a478] | 91 | <xref linkend="gst10-plugins-base"/>,
|
---|
[7ea83d7] | 92 | <xref linkend="gtk-doc"/>,
|
---|
| 93 | <xref linkend="sdl"/>,
|
---|
[c24e4de] | 94 | <ulink url="http://www.libsdl.org/download-2.0.php">SDL2</ulink>, and
|
---|
[7ea83d7] | 95 | <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
|
---|
[742b99e] | 96 | </para>
|
---|
[aea89388] | 97 |
|
---|
| 98 | <para condition="html" role="usernotes">User Notes:
|
---|
[a2912ff] | 99 | <ulink url="&blfs-wiki;/cogl"/>
|
---|
| 100 | </para>
|
---|
[aea89388] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
[742b99e] | 104 | <title>Installation of Cogl</title>
|
---|
[aea89388] | 105 |
|
---|
[a2912ff] | 106 | <para>
|
---|
| 107 | Install <application>Cogl</application> by running the following
|
---|
| 108 | commands:
|
---|
| 109 | </para>
|
---|
[aea89388] | 110 |
|
---|
[a27a478] | 111 | <screen><userinput>./configure --prefix=/usr --enable-gles1 --enable-gles2 &&
|
---|
[aea89388] | 112 | make</userinput></screen>
|
---|
| 113 |
|
---|
[a2912ff] | 114 | <para>
|
---|
[7ea83d7] | 115 | To test the results, issue: <command>make check</command>. The
|
---|
[ff84517] | 116 | tests should be run from an X terminal on the hardware accelerated
|
---|
| 117 | Xorg Server.
|
---|
[a2912ff] | 118 | </para>
|
---|
[aea89388] | 119 |
|
---|
[a2912ff] | 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[aea89388] | 123 |
|
---|
| 124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
[b9a819c8] | 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[7ea83d7] | 131 | <para>
|
---|
| 132 | <parameter>--enable-gles1</parameter>: This switch enables support
|
---|
| 133 | for OpenGL ES 1.1.
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | <parameter>--enable-gles2</parameter>: This switch enables support
|
---|
| 138 | for OpenGL ES 2.0.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
[a27a478] | 141 | <para>
|
---|
| 142 | <option>--enable-cogl-gst</option>: This switch enables gstreamer support.
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
[b9a819c8] | 145 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 146 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[b9a819c8] | 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
[aea89388] | 150 | <sect2 role="content">
|
---|
| 151 | <title>Contents</title>
|
---|
| 152 |
|
---|
| 153 | <segmentedlist>
|
---|
[7ea83d7] | 154 | <segtitle>Installed Programs</segtitle>
|
---|
[aea89388] | 155 | <segtitle>Installed Libraries</segtitle>
|
---|
[742b99e] | 156 | <segtitle>Installed Directories</segtitle>
|
---|
[aea89388] | 157 |
|
---|
| 158 | <seglistitem>
|
---|
[0913f48] | 159 | <seg>
|
---|
[7ea83d7] | 160 | None
|
---|
| 161 | </seg>
|
---|
| 162 | <seg>
|
---|
[773db87] | 163 | libcogl-gles2.so,
|
---|
[b9edd3d5] | 164 | libcogl-pango.so,
|
---|
| 165 | libcogl-path.so, and
|
---|
[a27a478] | 166 | libcogl.so, and optional libraries
|
---|
| 167 | libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so
|
---|
[0913f48] | 168 | </seg>
|
---|
| 169 | <seg>
|
---|
[983fc68] | 170 | /usr/include/cogl and
|
---|
| 171 | /usr/share/cogl
|
---|
[0913f48] | 172 | </seg>
|
---|
[aea89388] | 173 | </seglistitem>
|
---|
| 174 | </segmentedlist>
|
---|
| 175 |
|
---|
| 176 | <variablelist>
|
---|
| 177 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 178 | <?dbfo list-presentation="list"?>
|
---|
| 179 | <?dbhtml list-presentation="table"?>
|
---|
| 180 |
|
---|
[7ea83d7] | 181 | <varlistentry id="libcogl-gles2">
|
---|
| 182 | <term><filename class="libraryfile">libcogl-gles2.so</filename></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>
|
---|
| 185 | is the OpenGL ES 2.0 integration library for
|
---|
| 186 | <application>Cogl</application>.
|
---|
| 187 | </para>
|
---|
| 188 | <indexterm zone="cogl libcogl-gles2">
|
---|
| 189 | <primary sortas="c-libcogl-gles2">libcogl-gles2.so</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
[aea89388] | 194 | <varlistentry id="libcogl-pango">
|
---|
[948dc10] | 195 | <term><filename class="libraryfile">libcogl-pango.so</filename></term>
|
---|
[aea89388] | 196 | <listitem>
|
---|
[a2912ff] | 197 | <para>
|
---|
| 198 | is the <application>Pango</application> integration library
|
---|
| 199 | for <application>Cogl</application>.
|
---|
| 200 | </para>
|
---|
[aea89388] | 201 | <indexterm zone="cogl libcogl-pango">
|
---|
| 202 | <primary sortas="c-libcogl-pango">libcogl-pango.so</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="libcogl">
|
---|
[948dc10] | 208 | <term><filename class="libraryfile">libcogl.so</filename></term>
|
---|
[aea89388] | 209 | <listitem>
|
---|
[a2912ff] | 210 | <para>
|
---|
| 211 | is an object oriented GL/GLES Abstraction/Utility Layer library.
|
---|
| 212 | </para>
|
---|
[aea89388] | 213 | <indexterm zone="cogl libcogl">
|
---|
| 214 | <primary sortas="c-libcogl">libcogl.so</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
| 219 | </variablelist>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
| 222 |
|
---|
| 223 | </sect1>
|
---|