2011-08-12 15:54:30 +00:00
|
|
|
README for Cogl @COGL_1_VERSION@
|
2011-05-06 11:26:15 +00:00
|
|
|
===============================================================================
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
Note: This file is delimited with -- markers so it is possible to split
|
|
|
|
sections out for other purposes, such as for release notes.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
|
|
|
DESCRIPTION
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2011-09-19 16:34:08 +00:00
|
|
|
Cogl is a small open source library for using 3D graphics hardware for
|
|
|
|
rendering. The API departs from the flat state machine style of OpenGL and is
|
|
|
|
designed to make it easy to write orthogonal components that can render without
|
|
|
|
stepping on each others toes.
|
2011-06-14 12:38:48 +00:00
|
|
|
|
2011-07-04 13:37:11 +00:00
|
|
|
As well as aiming for a nice API, we think having a single library as opposed
|
2011-06-14 12:38:48 +00:00
|
|
|
to an API specification like OpenGL has a few advantages too; like being
|
|
|
|
able to paper over the inconsistencies/bugs of different OpenGL
|
|
|
|
implementations in a centralized place, not to mention the myriad of OpenGL
|
|
|
|
extensions. It also means we are in a better position to provide utility
|
|
|
|
APIs that help software developers since they only need to be implemented
|
|
|
|
once and there is no risk of inconsistency between implementations.
|
|
|
|
|
|
|
|
Having other backends, besides OpenGL, such as drm, Gallium or D3D are
|
|
|
|
options we are interested in for the future.
|
|
|
|
|
|
|
|
--
|
2011-05-06 11:26:15 +00:00
|
|
|
REQUIREMENTS
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Cogl currently only requires:
|
|
|
|
|
|
|
|
• OpenGL ≥ 1.3 (or 1.2 + multitexturing), or OpenGL ES 2.0 (or 1.1)
|
|
|
|
• GLX, AGL, WGL or an EGL implementation
|
|
|
|
|
|
|
|
Cogl also has optional dependencies:
|
|
|
|
|
2013-07-09 18:06:38 +00:00
|
|
|
• GLib ≥ @GLIB_REQ_VERSION@
|
|
|
|
- for gtype integration
|
2011-05-06 11:26:15 +00:00
|
|
|
• GDK-Pixbuf ≥ @GDK_PIXBUF_REQ_VERSION@
|
|
|
|
- for image loading
|
|
|
|
• Cairo ≥ @CAIRO_REQ_VERSION@
|
|
|
|
- for debugging texture atlasing (debug builds only)
|
|
|
|
|
|
|
|
The optional Cogl Pango library requires:
|
|
|
|
• Cairo ≥ @CAIRO_REQ_VERSION@
|
2011-07-01 15:20:32 +00:00
|
|
|
• PangoCairo ≥ @PANGOCAIRO_REQ_VERSION@
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2013-07-09 18:06:38 +00:00
|
|
|
The optional Cogl GStreamer library requires:
|
|
|
|
|
|
|
|
• GStreamer 1.0
|
|
|
|
|
2011-05-06 11:26:15 +00:00
|
|
|
On X11, Cogl depends on the following extensions
|
|
|
|
|
|
|
|
• XComposite ≥ @XCOMPOSITE_REQ_VERSION@
|
|
|
|
• XDamage
|
|
|
|
• XExt
|
|
|
|
• XFixes ≥ @XFIXES_REQ_VERSION@
|
|
|
|
|
2013-03-20 16:36:58 +00:00
|
|
|
For the Wayland backend, Cogl requires:
|
|
|
|
• Wayland ≥ @WAYLAND_REQ_VERSION@
|
|
|
|
|
2011-05-06 11:26:15 +00:00
|
|
|
When running with OpenGL, Cogl requires at least version 1.3
|
|
|
|
or 1.2 with the multitexturing extension. However to build Cogl
|
|
|
|
you will need the latest GL headers which can be obtained from:
|
|
|
|
|
|
|
|
http://www.khronos.org
|
|
|
|
|
|
|
|
If you are building the API reference you will also need:
|
|
|
|
|
|
|
|
• GTK-Doc ≥ @GTK_DOC_REQ_VERSION@
|
|
|
|
|
|
|
|
If you are building the additional documentation you will also need:
|
|
|
|
|
|
|
|
• xsltproc
|
|
|
|
• jw (optional, for generating PDFs)
|
|
|
|
|
|
|
|
If you are building the Introspection data you will also need:
|
|
|
|
|
|
|
|
• GObject-Introspection ≥ @GI_REQ_VERSION@
|
|
|
|
|
|
|
|
GObject-Introspection is available from:
|
|
|
|
|
|
|
|
git://git.gnome.org/gobject-introspection
|
|
|
|
|
|
|
|
If you want support for profiling Cogl you will also need:
|
|
|
|
|
|
|
|
• UProf ≥ @UPROF_REQ_VERSION@
|
|
|
|
|
|
|
|
UProf is available from:
|
|
|
|
|
|
|
|
git://github.com/rib/UProf.git
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
|
|
|
DOCUMENTATION
|
2011-05-06 11:26:15 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2012-09-03 14:32:07 +00:00
|
|
|
The 1.x stable API is documented here:
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2012-09-03 14:32:07 +00:00
|
|
|
http://developer.gnome.org/cogl/stable/
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2012-09-03 14:32:07 +00:00
|
|
|
The 1.x development API is documented here:
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2013-07-09 18:06:38 +00:00
|
|
|
http://developer.gnome.org/cogl/1.@COGL_1_MINOR_VERSION@
|
|
|
|
|
|
|
|
The experimental 2.0 API is documented here:
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2013-07-09 18:06:38 +00:00
|
|
|
http://cogl3d.org/cogl2-reference/
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
|
|
|
LICENSE
|
2011-05-06 11:26:15 +00:00
|
|
|
-------------------------------------------------------------------------------
|
2014-02-22 01:28:54 +00:00
|
|
|
Most of Cogl is licensed under the terms of the MIT license. There are
|
|
|
|
also some files under the SGI Free Software License B, version 2.0,
|
|
|
|
cogl-point-in-poly.c is under a 3 clause BSD license and stb_image.c
|
|
|
|
is public domain. Please see individual files for details.
|
|
|
|
|
|
|
|
deps/glib is licensed under the LGPL (please see individual files for
|
|
|
|
details and deps/glib/COPYING for a copy of the LGPL license) This
|
|
|
|
code is only referenced when building Cogl with the --enable-standalone
|
|
|
|
configure option.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
|
|
|
BUILDING AND INSTALLATION
|
2011-05-06 11:26:15 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
Please refer to the INSTALL document.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
2011-05-06 11:26:15 +00:00
|
|
|
BUGS
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
Please report bugs here:
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-08-22 16:39:02 +00:00
|
|
|
http://bugzilla.gnome.org/enter_bug.cgi?product=cogl
|
2011-05-06 11:26:15 +00:00
|
|
|
|
|
|
|
You will need a Bugzilla account.
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
Please include the following in bug reports:
|
2011-05-06 11:26:15 +00:00
|
|
|
|
|
|
|
• what system you're running Cogl on;
|
|
|
|
• which version of Cogl you are using;
|
|
|
|
• which version of GLib and OpenGL (or OpenGL ES) you are using;
|
|
|
|
• which video card and which drivers you are using, including output of
|
|
|
|
glxinfo and xdpyinfo (if applicable);
|
|
|
|
• how to reproduce the bug.
|
|
|
|
|
|
|
|
If you cannot reproduce the bug with one of the tests that come with
|
|
|
|
Cogl's source code, it can help a lot to include a small test case
|
|
|
|
displaying the bad behaviour.
|
|
|
|
|
|
|
|
If the bug exposes a crash, the exact text printed out and a stack trace
|
|
|
|
obtained using gdb are greatly appreciated.
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
--
|
2011-05-06 11:26:15 +00:00
|
|
|
CONTRIBUTING
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
The CODING_STYLE file describes the coding style we use throughout Cogl,
|
|
|
|
please try your best to conform to this style because the consistency
|
|
|
|
really helps keep the code maintainable.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
We can accept contributions in several ways:
|
|
|
|
• Either as patches attached to bugs on bugzilla
|
|
|
|
- For this you may be interested in using git-bz.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
See http://git.fishsoup.net/man/git-bz.html for details
|
|
|
|
• You can email us patches
|
|
|
|
- For this we recommend using git-send-email
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
• You can create a remote branch and ask us to pull from that for more
|
|
|
|
substantial changes.
|
|
|
|
- For this we recommend using github.
|
2011-05-06 11:26:15 +00:00
|
|
|
|
2011-06-14 12:38:48 +00:00
|
|
|
Ideally standalone patches should be created using git format-patch since
|
|
|
|
that makes it easiest to import the patch with a commit message into a
|
|
|
|
git repository.
|