Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
# preamble
|
|
|
|
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
NULL =
|
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
SUBDIRS =
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
2009-11-18 12:35:07 -05:00
|
|
|
BUILT_SOURCES =
|
2010-09-12 14:25:47 -04:00
|
|
|
|
2009-11-18 12:35:07 -05:00
|
|
|
EXTRA_DIST =
|
2009-10-23 07:15:25 -04:00
|
|
|
CLEANFILES =
|
|
|
|
DISTCLEANFILES =
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
2010-09-12 14:25:47 -04:00
|
|
|
noinst_LTLIBRARIES =
|
2011-02-09 21:32:11 -05:00
|
|
|
lib_LTLIBRARIES =
|
2010-09-12 14:25:47 -04:00
|
|
|
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
INCLUDES = \
|
2009-10-23 07:15:25 -04:00
|
|
|
-I$(top_srcdir) \
|
2011-02-09 21:32:11 -05:00
|
|
|
-I$(top_builddir) \
|
2010-09-13 06:31:46 -04:00
|
|
|
-I$(srcdir)/tesselator \
|
2009-10-23 07:15:25 -04:00
|
|
|
-I$(srcdir)/winsys \
|
|
|
|
-I$(srcdir)/driver/$(COGL_DRIVER) \
|
2011-02-09 21:32:11 -05:00
|
|
|
$(NULL)
|
|
|
|
|
2010-01-13 10:40:36 -05:00
|
|
|
AM_CPPFLAGS = \
|
2011-02-09 21:32:11 -05:00
|
|
|
-DG_LOG_DOMAIN=\"Cogl\" \
|
2012-06-20 13:49:08 -04:00
|
|
|
-DCOGL_COMPILATION \
|
2011-07-07 15:44:56 -04:00
|
|
|
-DCOGL_GL_LIBNAME=\"$(COGL_GL_LIBNAME)\" \
|
|
|
|
-DCOGL_GLES1_LIBNAME=\"$(COGL_GLES1_LIBNAME)\" \
|
|
|
|
-DCOGL_GLES2_LIBNAME=\"$(COGL_GLES2_LIBNAME)\" \
|
2011-09-10 04:51:42 -04:00
|
|
|
-DCOGL_LOCALEDIR=\""$(localedir)"\" \
|
2010-01-13 10:40:36 -05:00
|
|
|
$(NULL)
|
|
|
|
|
2012-06-20 03:47:41 -04:00
|
|
|
if HAVE_COGL_DEFAULT_DRIVER
|
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-DCOGL_DEFAULT_DRIVER=\"$(COGL_DEFAULT_DRIVER)\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2011-02-09 21:32:11 -05:00
|
|
|
AM_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
|
2010-01-13 10:40:36 -05:00
|
|
|
|
2012-07-10 09:14:07 -04:00
|
|
|
BUILT_SOURCES += cogl-defines.h cogl-egl-defines.h cogl-gl-header.h
|
|
|
|
DISTCLEANFILES += cogl-defines.h cogl-egl-defines.h cogl-gl-header.h
|
|
|
|
EXTRA_DIST += cogl-defines.h.in cogl-egl-defines.h.in cogl-gl-header.h.in
|
2010-06-23 12:29:08 -04:00
|
|
|
|
2011-02-09 21:32:11 -05:00
|
|
|
# Note: The cogl-1.0/cogl-gl-1.0 files are essentially for
|
|
|
|
# compatability only. I'm not really sure who could possibly be using
|
|
|
|
# them so we may decide to remove them entirely at some point.
|
2010-09-13 06:30:30 -04:00
|
|
|
pc_files = \
|
2011-02-09 21:32:11 -05:00
|
|
|
cogl-1.0.pc \
|
|
|
|
cogl-gl-1.0.pc
|
2010-09-13 06:30:30 -04:00
|
|
|
|
2011-06-10 13:47:12 -04:00
|
|
|
pc_files += cogl-$(COGL_API_VERSION)-experimental.pc
|
2011-02-09 21:32:11 -05:00
|
|
|
|
|
|
|
cogl-gl-1.0.pc: cogl-1.0.pc
|
2010-09-13 06:30:30 -04:00
|
|
|
$(QUIET_GEN)cp -f $< $(@F)
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = $(pc_files)
|
|
|
|
|
2011-06-13 07:42:25 -04:00
|
|
|
EXTRA_DIST += cogl-1.0.pc.in cogl-$(COGL_API_VERSION)-experimental.pc.in
|
2010-09-13 06:30:30 -04:00
|
|
|
DISTCLEANFILES += $(pc_files)
|
|
|
|
|
2012-02-17 17:57:50 -05:00
|
|
|
# public 1.x api headers
|
|
|
|
cogl_1_public_h = \
|
2012-02-17 16:46:39 -05:00
|
|
|
$(srcdir)/cogl1-context.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-bitmap.h \
|
|
|
|
$(srcdir)/cogl-color.h \
|
|
|
|
$(srcdir)/cogl-fixed.h \
|
2010-10-27 13:54:57 -04:00
|
|
|
$(srcdir)/cogl-material-compat.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-matrix.h \
|
|
|
|
$(srcdir)/cogl-offscreen.h \
|
2010-02-10 17:30:37 -05:00
|
|
|
$(srcdir)/cogl-primitives.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-path.h \
|
2012-03-06 13:21:28 -05:00
|
|
|
$(srcdir)/cogl-path-functions.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-shader.h \
|
|
|
|
$(srcdir)/cogl-texture.h \
|
|
|
|
$(srcdir)/cogl-types.h \
|
|
|
|
$(srcdir)/cogl-vertex-buffer.h \
|
2011-02-22 13:25:29 -05:00
|
|
|
$(srcdir)/cogl-clutter.h \
|
2009-11-18 12:35:07 -05:00
|
|
|
$(srcdir)/cogl.h \
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-02-17 17:57:50 -05:00
|
|
|
# experimental 2.0 api headers
|
|
|
|
# Note: we don't run glib-mkenums over these headers
|
2010-11-03 20:27:47 -04:00
|
|
|
cogl_experimental_h = \
|
2012-02-17 17:57:50 -05:00
|
|
|
$(srcdir)/cogl-object.h \
|
Adds renderer,display,onscreen-template and swap-chain stubs
As part of the process of splitting Cogl out as a standalone graphics
API we need to introduce some API concepts that will allow us to
initialize a new CoglContext when Clutter isn't there to handle that for
us...
The new objects roughly in the order that they are (optionally) involved
in constructing a context are: CoglRenderer, CoglOnscreenTemplate,
CoglSwapChain and CoglDisplay.
Conceptually a CoglRenderer represents a means for rendering. Cogl
supports rendering via OpenGL or OpenGL ES 1/2.0 and those APIs are
accessed through a number of different windowing APIs such as GLX, EGL,
SDL or WGL and more. Potentially in the future Cogl could render using
D3D or even by using libdrm and directly banging the hardware. All these
choices are wrapped up in the configuration of a CoglRenderer.
Conceptually a CoglDisplay represents a display pipeline for a renderer.
Although Cogl doesn't aim to provide a detailed abstraction of display
hardware, on some platforms we can give control over multiple display
planes (On TV platforms for instance video content may be on one plane
and 3D would be on another so a CoglDisplay lets you select the plane
up-front.)
Another aspect of CoglDisplay is that it lets us negotiate a display
pipeline that best supports the type of CoglOnscreen framebuffers we are
planning to create. For instance if you want transparent CoglOnscreen
framebuffers then we have to be sure the display pipeline wont discard
the alpha component of your framebuffers. Or if you want to use
double/tripple buffering that requires support from the display
pipeline.
CoglOnscreenTemplate and CoglSwapChain are how we describe our default
CoglOnscreen framebuffer configuration which can affect the
configuration of the display pipeline.
The default/simple way we expect most CoglContexts to be constructed
will be via something like:
if (!cogl_context_new (NULL, &error))
g_error ("Failed to construct a CoglContext: %s", error->message);
Where that NULL is for an optional "display" parameter and NULL says to
Cogl "please just try to do something sensible".
If you want some more control though you can manually construct a
CoglDisplay something like:
display = cogl_display_new (NULL, NULL);
cogl_gdl_display_set_plane (display, plane);
if (!cogl_display_setup (display, &error))
g_error ("Failed to setup a CoglDisplay: %s", error->message);
And in a similar fashion to cogl_context_new() you can optionally pass
a NULL "renderer" and/or a NULL "onscreen template" so Cogl will try to
just do something sensible.
If you need to change the CoglOnscreen defaults you can provide a
template something like:
chain = cogl_swap_chain_new ();
cogl_swap_chain_set_has_alpha (chain, TRUE);
cogl_swap_chain_set_length (chain, 3);
onscreen_template = cogl_onscreen_template_new (chain);
cogl_onscreen_template_set_pixel_format (onscreen_template,
COGL_PIXEL_FORMAT_RGB565);
display = cogl_display_new (NULL, onscreen_template);
if (!cogl_display_setup (display, &error))
g_error ("Failed to setup a CoglDisplay: %s", error->message);
2011-02-25 12:06:50 -05:00
|
|
|
$(srcdir)/cogl-renderer.h \
|
|
|
|
$(srcdir)/cogl-swap-chain.h \
|
|
|
|
$(srcdir)/cogl-onscreen-template.h \
|
|
|
|
$(srcdir)/cogl-display.h \
|
2010-11-04 20:00:25 -04:00
|
|
|
$(srcdir)/cogl-context.h \
|
2011-09-07 18:44:37 -04:00
|
|
|
$(srcdir)/cogl-pipeline.h \
|
|
|
|
$(srcdir)/cogl-pipeline-state.h \
|
2011-09-07 19:42:22 -04:00
|
|
|
$(srcdir)/cogl-pipeline-layer-state.h \
|
2011-11-17 11:38:49 -05:00
|
|
|
$(srcdir)/cogl-snippet.h \
|
2010-11-03 20:27:47 -04:00
|
|
|
$(srcdir)/cogl2-path.h \
|
2012-03-05 22:21:30 -05:00
|
|
|
$(srcdir)/cogl-gles2.h \
|
|
|
|
$(srcdir)/cogl-gles2-types.h \
|
2012-02-17 17:57:50 -05:00
|
|
|
$(srcdir)/cogl-index-buffer.h \
|
|
|
|
$(srcdir)/cogl-attribute-buffer.h \
|
|
|
|
$(srcdir)/cogl-indices.h \
|
|
|
|
$(srcdir)/cogl-attribute.h \
|
|
|
|
$(srcdir)/cogl-primitive.h \
|
|
|
|
$(srcdir)/cogl-clip-state.h \
|
|
|
|
$(srcdir)/cogl-framebuffer.h \
|
|
|
|
$(srcdir)/cogl-onscreen.h \
|
|
|
|
$(srcdir)/cogl-vector.h \
|
|
|
|
$(srcdir)/cogl-euler.h \
|
|
|
|
$(srcdir)/cogl-quaternion.h \
|
|
|
|
$(srcdir)/cogl-poll.h \
|
|
|
|
$(srcdir)/cogl-texture-3d.h \
|
|
|
|
$(srcdir)/cogl-texture-2d.h \
|
|
|
|
$(srcdir)/cogl-texture-rectangle.h \
|
|
|
|
$(srcdir)/cogl-texture-2d-sliced.h \
|
|
|
|
$(srcdir)/cogl-sub-texture.h \
|
|
|
|
$(srcdir)/cogl-meta-texture.h \
|
2012-04-04 10:09:43 -04:00
|
|
|
$(srcdir)/cogl-primitive-texture.h \
|
2012-02-17 17:57:50 -05:00
|
|
|
$(srcdir)/cogl-depth-state.h \
|
|
|
|
$(srcdir)/cogl-buffer.h \
|
|
|
|
$(srcdir)/cogl-pixel-buffer.h \
|
2011-09-05 17:44:37 -04:00
|
|
|
$(srcdir)/cogl2-experimental.h \
|
2012-03-09 11:09:13 -05:00
|
|
|
$(srcdir)/cogl2-compatibility.h \
|
2012-04-23 09:09:19 -04:00
|
|
|
$(srcdir)/cogl-version.h \
|
2010-11-03 20:27:47 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-07-10 09:14:07 -04:00
|
|
|
cogl_nodist_experimental_h = \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-03-05 22:21:30 -05:00
|
|
|
cogl_gl_prototypes_h = \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-gles2-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-in-gles-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-in-gles2-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-glsl-functions.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
# driver sources
|
|
|
|
cogl_driver_sources =
|
|
|
|
|
2011-07-07 15:44:56 -04:00
|
|
|
if COGL_DRIVER_GL_SUPPORTED
|
2010-09-13 06:30:30 -04:00
|
|
|
cogl_driver_sources += \
|
|
|
|
$(srcdir)/driver/gl/cogl-gl.c \
|
|
|
|
$(srcdir)/driver/gl/cogl-texture-driver-gl.c \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2011-07-07 15:44:56 -04:00
|
|
|
if COGL_DRIVER_GLES_SUPPORTED
|
2010-09-13 06:30:30 -04:00
|
|
|
cogl_driver_sources += \
|
|
|
|
$(srcdir)/driver/gles/cogl-gles.c \
|
|
|
|
$(srcdir)/driver/gles/cogl-texture-driver-gles.c \
|
|
|
|
$(NULL)
|
2011-07-07 15:44:56 -04:00
|
|
|
endif
|
2010-09-13 06:30:30 -04:00
|
|
|
|
2010-09-12 14:25:47 -04:00
|
|
|
# winsys sources, common to all backends
|
|
|
|
cogl_winsys_common_sources = \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-private.h \
|
|
|
|
$(srcdir)/winsys/cogl-winsys.c \
|
2010-09-12 14:25:47 -04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# tesselator sources
|
|
|
|
cogl_tesselator_sources = \
|
|
|
|
$(srcdir)/tesselator/dict-list.h \
|
|
|
|
$(srcdir)/tesselator/dict.c \
|
|
|
|
$(srcdir)/tesselator/dict.h \
|
|
|
|
$(srcdir)/tesselator/geom.c \
|
|
|
|
$(srcdir)/tesselator/geom.h \
|
|
|
|
$(srcdir)/tesselator/gluos.h \
|
|
|
|
$(srcdir)/tesselator/memalloc.h \
|
|
|
|
$(srcdir)/tesselator/mesh.c \
|
|
|
|
$(srcdir)/tesselator/mesh.h \
|
|
|
|
$(srcdir)/tesselator/normal.c \
|
|
|
|
$(srcdir)/tesselator/normal.h \
|
|
|
|
$(srcdir)/tesselator/priorityq-heap.h \
|
|
|
|
$(srcdir)/tesselator/priorityq-sort.h \
|
|
|
|
$(srcdir)/tesselator/priorityq.c \
|
|
|
|
$(srcdir)/tesselator/priorityq.h \
|
|
|
|
$(srcdir)/tesselator/render.c \
|
|
|
|
$(srcdir)/tesselator/render.h \
|
|
|
|
$(srcdir)/tesselator/sweep.c \
|
|
|
|
$(srcdir)/tesselator/sweep.h \
|
|
|
|
$(srcdir)/tesselator/tess.c \
|
|
|
|
$(srcdir)/tesselator/tess.h \
|
|
|
|
$(srcdir)/tesselator/tesselator.h \
|
|
|
|
$(srcdir)/tesselator/tessmono.c \
|
|
|
|
$(srcdir)/tesselator/tessmono.h \
|
|
|
|
$(srcdir)/tesselator/GL/glu.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2010-09-13 06:30:30 -04:00
|
|
|
$(srcdir)/tesselator/README \
|
|
|
|
$(srcdir)/tesselator/priorityq-heap.c \
|
|
|
|
$(NULL)
|
2010-09-12 14:25:47 -04:00
|
|
|
|
|
|
|
# sources
|
2010-01-13 10:40:36 -05:00
|
|
|
cogl_sources_c = \
|
2010-09-13 06:30:30 -04:00
|
|
|
$(cogl_driver_sources) \
|
2010-09-12 14:25:47 -04:00
|
|
|
$(cogl_winsys_common_sources) \
|
|
|
|
$(cogl_tesselator_sources) \
|
2010-11-02 13:15:06 -04:00
|
|
|
$(srcdir)/cogl-private.h \
|
2010-07-25 16:36:41 -04:00
|
|
|
$(srcdir)/cogl-debug.h \
|
2010-09-15 10:56:42 -04:00
|
|
|
$(srcdir)/cogl-debug-options.h \
|
2012-03-27 09:43:04 -04:00
|
|
|
$(srcdir)/cogl-gpu-info.c \
|
|
|
|
$(srcdir)/cogl-gpu-info-private.h \
|
2010-11-04 18:25:52 -04:00
|
|
|
$(srcdir)/cogl-context-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-context.c \
|
Adds renderer,display,onscreen-template and swap-chain stubs
As part of the process of splitting Cogl out as a standalone graphics
API we need to introduce some API concepts that will allow us to
initialize a new CoglContext when Clutter isn't there to handle that for
us...
The new objects roughly in the order that they are (optionally) involved
in constructing a context are: CoglRenderer, CoglOnscreenTemplate,
CoglSwapChain and CoglDisplay.
Conceptually a CoglRenderer represents a means for rendering. Cogl
supports rendering via OpenGL or OpenGL ES 1/2.0 and those APIs are
accessed through a number of different windowing APIs such as GLX, EGL,
SDL or WGL and more. Potentially in the future Cogl could render using
D3D or even by using libdrm and directly banging the hardware. All these
choices are wrapped up in the configuration of a CoglRenderer.
Conceptually a CoglDisplay represents a display pipeline for a renderer.
Although Cogl doesn't aim to provide a detailed abstraction of display
hardware, on some platforms we can give control over multiple display
planes (On TV platforms for instance video content may be on one plane
and 3D would be on another so a CoglDisplay lets you select the plane
up-front.)
Another aspect of CoglDisplay is that it lets us negotiate a display
pipeline that best supports the type of CoglOnscreen framebuffers we are
planning to create. For instance if you want transparent CoglOnscreen
framebuffers then we have to be sure the display pipeline wont discard
the alpha component of your framebuffers. Or if you want to use
double/tripple buffering that requires support from the display
pipeline.
CoglOnscreenTemplate and CoglSwapChain are how we describe our default
CoglOnscreen framebuffer configuration which can affect the
configuration of the display pipeline.
The default/simple way we expect most CoglContexts to be constructed
will be via something like:
if (!cogl_context_new (NULL, &error))
g_error ("Failed to construct a CoglContext: %s", error->message);
Where that NULL is for an optional "display" parameter and NULL says to
Cogl "please just try to do something sensible".
If you want some more control though you can manually construct a
CoglDisplay something like:
display = cogl_display_new (NULL, NULL);
cogl_gdl_display_set_plane (display, plane);
if (!cogl_display_setup (display, &error))
g_error ("Failed to setup a CoglDisplay: %s", error->message);
And in a similar fashion to cogl_context_new() you can optionally pass
a NULL "renderer" and/or a NULL "onscreen template" so Cogl will try to
just do something sensible.
If you need to change the CoglOnscreen defaults you can provide a
template something like:
chain = cogl_swap_chain_new ();
cogl_swap_chain_set_has_alpha (chain, TRUE);
cogl_swap_chain_set_length (chain, 3);
onscreen_template = cogl_onscreen_template_new (chain);
cogl_onscreen_template_set_pixel_format (onscreen_template,
COGL_PIXEL_FORMAT_RGB565);
display = cogl_display_new (NULL, onscreen_template);
if (!cogl_display_setup (display, &error))
g_error ("Failed to setup a CoglDisplay: %s", error->message);
2011-02-25 12:06:50 -05:00
|
|
|
$(srcdir)/cogl-renderer-private.h \
|
|
|
|
$(srcdir)/cogl-renderer.h \
|
|
|
|
$(srcdir)/cogl-renderer.c \
|
|
|
|
$(srcdir)/cogl-swap-chain-private.h \
|
|
|
|
$(srcdir)/cogl-swap-chain.h \
|
|
|
|
$(srcdir)/cogl-swap-chain.c \
|
|
|
|
$(srcdir)/cogl-onscreen-template-private.h \
|
|
|
|
$(srcdir)/cogl-onscreen-template.h \
|
|
|
|
$(srcdir)/cogl-onscreen-template.c \
|
|
|
|
$(srcdir)/cogl-display-private.h \
|
|
|
|
$(srcdir)/cogl-display.h \
|
|
|
|
$(srcdir)/cogl-display.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-internal.h \
|
2012-03-22 12:32:56 -04:00
|
|
|
$(srcdir)/cogl-driver.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl.c \
|
2010-05-27 17:24:56 -04:00
|
|
|
$(srcdir)/cogl-object-private.h \
|
|
|
|
$(srcdir)/cogl-object.h \
|
|
|
|
$(srcdir)/cogl-object.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-util.h \
|
|
|
|
$(srcdir)/cogl-util.c \
|
|
|
|
$(srcdir)/cogl-bitmap-private.h \
|
|
|
|
$(srcdir)/cogl-bitmap.c \
|
2012-03-01 08:14:10 -05:00
|
|
|
$(srcdir)/cogl-bitmap-conversion.c \
|
2012-03-05 18:18:08 -05:00
|
|
|
$(srcdir)/cogl-bitmap-packing.h \
|
2010-11-02 13:15:06 -04:00
|
|
|
$(srcdir)/cogl-primitives-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-primitives.h \
|
|
|
|
$(srcdir)/cogl-primitives.c \
|
2010-11-19 13:29:43 -05:00
|
|
|
$(srcdir)/cogl-path-private.h \
|
2010-02-10 17:30:37 -05:00
|
|
|
$(srcdir)/cogl-path.h \
|
|
|
|
$(srcdir)/cogl-path.c \
|
2010-11-03 20:27:47 -04:00
|
|
|
$(srcdir)/cogl2-path.h \
|
|
|
|
$(srcdir)/cogl2-path.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-bitmap-pixbuf.c \
|
|
|
|
$(srcdir)/cogl-clip-stack.h \
|
|
|
|
$(srcdir)/cogl-clip-stack.c \
|
2011-03-02 12:45:25 -05:00
|
|
|
$(srcdir)/cogl-clip-state-private.h \
|
|
|
|
$(srcdir)/cogl-clip-state.h \
|
|
|
|
$(srcdir)/cogl-clip-state.c \
|
2012-03-09 11:09:13 -05:00
|
|
|
$(srcdir)/cogl2-compatibility.c \
|
2009-11-17 08:52:40 -05:00
|
|
|
$(srcdir)/cogl-feature-private.h \
|
|
|
|
$(srcdir)/cogl-feature-private.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-fixed.c \
|
2010-06-15 17:36:19 -04:00
|
|
|
$(srcdir)/cogl-color-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-color.c \
|
2010-01-10 12:28:24 -05:00
|
|
|
$(srcdir)/cogl-buffer-private.h \
|
|
|
|
$(srcdir)/cogl-buffer.c \
|
2011-03-02 10:19:57 -05:00
|
|
|
$(srcdir)/cogl-pixel-buffer-private.h \
|
|
|
|
$(srcdir)/cogl-pixel-buffer.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-vertex-buffer-private.h \
|
|
|
|
$(srcdir)/cogl-vertex-buffer.c \
|
2011-03-02 18:31:19 -05:00
|
|
|
$(srcdir)/cogl-index-buffer-private.h \
|
|
|
|
$(srcdir)/cogl-index-buffer.c \
|
2011-03-02 10:01:41 -05:00
|
|
|
$(srcdir)/cogl-attribute-buffer-private.h \
|
|
|
|
$(srcdir)/cogl-attribute-buffer.c \
|
2010-10-12 07:48:58 -04:00
|
|
|
$(srcdir)/cogl-indices-private.h \
|
|
|
|
$(srcdir)/cogl-indices.c \
|
2011-01-20 14:31:53 -05:00
|
|
|
$(srcdir)/cogl-attribute-private.h \
|
|
|
|
$(srcdir)/cogl-attribute.c \
|
2010-10-12 07:54:07 -04:00
|
|
|
$(srcdir)/cogl-primitive-private.h \
|
|
|
|
$(srcdir)/cogl-primitive.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-matrix.c \
|
2010-05-20 09:54:44 -04:00
|
|
|
$(srcdir)/cogl-vector.c \
|
2010-02-24 20:40:29 -05:00
|
|
|
$(srcdir)/cogl-euler.c \
|
2011-06-13 07:42:25 -04:00
|
|
|
$(srcdir)/cogl-quaternion-private.h \
|
2010-02-24 20:40:29 -05:00
|
|
|
$(srcdir)/cogl-quaternion.c \
|
2009-11-18 09:37:43 -05:00
|
|
|
$(srcdir)/cogl-matrix-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-matrix-stack.c \
|
|
|
|
$(srcdir)/cogl-matrix-stack.h \
|
2011-04-14 13:12:03 -04:00
|
|
|
$(srcdir)/cogl-depth-state.c \
|
|
|
|
$(srcdir)/cogl-depth-state-private.h \
|
2011-09-08 19:40:06 -04:00
|
|
|
$(srcdir)/cogl-node.c \
|
|
|
|
$(srcdir)/cogl-node-private.h \
|
2010-10-27 13:54:57 -04:00
|
|
|
$(srcdir)/cogl-pipeline.c \
|
|
|
|
$(srcdir)/cogl-pipeline-private.h \
|
2011-09-08 19:40:06 -04:00
|
|
|
$(srcdir)/cogl-pipeline-layer.c \
|
|
|
|
$(srcdir)/cogl-pipeline-layer-private.h \
|
2011-09-07 18:44:37 -04:00
|
|
|
$(srcdir)/cogl-pipeline-state.c \
|
2011-09-07 19:42:22 -04:00
|
|
|
$(srcdir)/cogl-pipeline-layer-state-private.h \
|
|
|
|
$(srcdir)/cogl-pipeline-layer-state.c \
|
2011-09-07 18:44:37 -04:00
|
|
|
$(srcdir)/cogl-pipeline-state-private.h \
|
2011-09-08 19:40:06 -04:00
|
|
|
$(srcdir)/cogl-pipeline-debug.c \
|
2010-10-27 13:54:57 -04:00
|
|
|
$(srcdir)/cogl-pipeline-opengl.c \
|
|
|
|
$(srcdir)/cogl-pipeline-opengl-private.h \
|
2010-11-29 11:56:41 -05:00
|
|
|
$(srcdir)/cogl-pipeline-fragend-glsl.c \
|
|
|
|
$(srcdir)/cogl-pipeline-fragend-glsl-private.h \
|
|
|
|
$(srcdir)/cogl-pipeline-fragend-arbfp.c \
|
|
|
|
$(srcdir)/cogl-pipeline-fragend-arbfp-private.h \
|
|
|
|
$(srcdir)/cogl-pipeline-fragend-fixed.c \
|
|
|
|
$(srcdir)/cogl-pipeline-fragend-fixed-private.h \
|
2010-12-02 15:48:45 -05:00
|
|
|
$(srcdir)/cogl-pipeline-vertend-glsl.c \
|
|
|
|
$(srcdir)/cogl-pipeline-vertend-glsl-private.h \
|
2010-11-29 13:32:21 -05:00
|
|
|
$(srcdir)/cogl-pipeline-vertend-fixed.c \
|
|
|
|
$(srcdir)/cogl-pipeline-vertend-fixed-private.h \
|
2011-11-29 09:21:07 -05:00
|
|
|
$(srcdir)/cogl-pipeline-progend-fixed.c \
|
|
|
|
$(srcdir)/cogl-pipeline-progend-fixed-private.h \
|
2010-12-02 09:00:46 -05:00
|
|
|
$(srcdir)/cogl-pipeline-progend-glsl.c \
|
|
|
|
$(srcdir)/cogl-pipeline-progend-glsl-private.h \
|
2011-11-25 10:31:21 -05:00
|
|
|
$(srcdir)/cogl-pipeline-snippet-private.h \
|
|
|
|
$(srcdir)/cogl-pipeline-snippet.c \
|
2011-06-30 10:55:56 -04:00
|
|
|
$(srcdir)/cogl-pipeline-cache.h \
|
|
|
|
$(srcdir)/cogl-pipeline-cache.c \
|
2010-10-27 13:54:57 -04:00
|
|
|
$(srcdir)/cogl-material-compat.c \
|
2010-10-15 13:00:29 -04:00
|
|
|
$(srcdir)/cogl-program.c \
|
|
|
|
$(srcdir)/cogl-program-private.h \
|
2012-04-04 17:20:04 -04:00
|
|
|
$(srcdir)/cogl-sampler-cache.c \
|
|
|
|
$(srcdir)/cogl-sampler-cache-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-blend-string.c \
|
|
|
|
$(srcdir)/cogl-blend-string.h \
|
|
|
|
$(srcdir)/cogl-debug.c \
|
2009-11-27 11:39:16 -05:00
|
|
|
$(srcdir)/cogl-sub-texture-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-texture-private.h \
|
2009-11-27 13:45:36 -05:00
|
|
|
$(srcdir)/cogl-texture-2d-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-texture-2d-sliced-private.h \
|
2010-07-01 17:04:59 -04:00
|
|
|
$(srcdir)/cogl-texture-3d-private.h \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-texture-driver.h \
|
2009-11-27 11:39:16 -05:00
|
|
|
$(srcdir)/cogl-sub-texture.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-texture.c \
|
2009-11-27 13:45:36 -05:00
|
|
|
$(srcdir)/cogl-texture-2d.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-texture-2d-sliced.c \
|
2010-07-01 17:04:59 -04:00
|
|
|
$(srcdir)/cogl-texture-3d.c \
|
2010-06-10 10:33:34 -04:00
|
|
|
$(srcdir)/cogl-texture-rectangle-private.h \
|
|
|
|
$(srcdir)/cogl-texture-rectangle.c \
|
2010-08-02 10:24:03 -04:00
|
|
|
$(srcdir)/cogl-rectangle-map.h \
|
|
|
|
$(srcdir)/cogl-rectangle-map.c \
|
2010-08-02 11:29:10 -04:00
|
|
|
$(srcdir)/cogl-atlas.h \
|
|
|
|
$(srcdir)/cogl-atlas.c \
|
2009-12-04 08:06:32 -05:00
|
|
|
$(srcdir)/cogl-atlas-texture-private.h \
|
|
|
|
$(srcdir)/cogl-atlas-texture.c \
|
2011-10-08 09:13:03 -04:00
|
|
|
$(srcdir)/cogl-meta-texture.c \
|
2012-04-04 10:09:43 -04:00
|
|
|
$(srcdir)/cogl-primitive-texture.c \
|
2011-01-20 12:45:47 -05:00
|
|
|
$(srcdir)/cogl-blit.h \
|
|
|
|
$(srcdir)/cogl-blit.c \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-spans.h \
|
|
|
|
$(srcdir)/cogl-spans.c \
|
|
|
|
$(srcdir)/cogl-journal-private.h \
|
|
|
|
$(srcdir)/cogl-journal.c \
|
2009-11-26 14:06:35 -05:00
|
|
|
$(srcdir)/cogl-framebuffer-private.h \
|
|
|
|
$(srcdir)/cogl-framebuffer.c \
|
2011-11-02 07:34:26 -04:00
|
|
|
$(srcdir)/cogl-onscreen-private.h \
|
2011-10-13 16:31:04 -04:00
|
|
|
$(srcdir)/cogl-onscreen.c \
|
2009-07-03 11:22:35 -04:00
|
|
|
$(srcdir)/cogl-profile.h \
|
|
|
|
$(srcdir)/cogl-profile.c \
|
2011-04-15 10:39:14 -04:00
|
|
|
$(srcdir)/cogl-flags.h \
|
2010-05-20 12:31:42 -04:00
|
|
|
$(srcdir)/cogl-bitmask.h \
|
|
|
|
$(srcdir)/cogl-bitmask.c \
|
2010-11-20 05:46:57 -05:00
|
|
|
$(srcdir)/cogl-shader-boilerplate.h \
|
2010-08-02 16:40:55 -04:00
|
|
|
$(srcdir)/cogl-shader-private.h \
|
|
|
|
$(srcdir)/cogl-shader.c \
|
2010-11-29 16:42:06 -05:00
|
|
|
$(srcdir)/cogl-gtype-private.h \
|
2011-02-22 13:25:29 -05:00
|
|
|
$(srcdir)/cogl-point-in-poly-private.h \
|
|
|
|
$(srcdir)/cogl-point-in-poly.c \
|
|
|
|
$(srcdir)/cogl-clutter.c \
|
2011-06-13 07:42:25 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-stub-private.h \
|
2011-06-13 11:11:31 -04:00
|
|
|
$(srcdir)/cogl-queue.h \
|
2011-05-17 10:00:38 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-stub.c \
|
2011-08-03 13:15:54 -04:00
|
|
|
$(srcdir)/cogl-config-private.h \
|
|
|
|
$(srcdir)/cogl-config.c \
|
2011-10-27 11:54:50 -04:00
|
|
|
$(srcdir)/cogl-boxed-value.h \
|
|
|
|
$(srcdir)/cogl-boxed-value.c \
|
2011-11-17 11:38:49 -05:00
|
|
|
$(srcdir)/cogl-snippet-private.h \
|
|
|
|
$(srcdir)/cogl-snippet.c \
|
2011-12-16 12:49:28 -05:00
|
|
|
$(srcdir)/cogl-poll.c \
|
2012-01-01 16:45:07 -05:00
|
|
|
$(srcdir)/gl-prototypes/cogl-all-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-gles1-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-gles2-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-in-gles-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-in-gles1-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-in-gles2-core-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-fixed-functions.h \
|
|
|
|
$(srcdir)/gl-prototypes/cogl-glsl-functions.h \
|
2011-09-04 08:40:18 -04:00
|
|
|
$(srcdir)/cogl-memory-stack-private.h \
|
|
|
|
$(srcdir)/cogl-memory-stack.c \
|
2012-03-23 08:18:45 -04:00
|
|
|
$(srcdir)/cogl-magazine-private.h \
|
|
|
|
$(srcdir)/cogl-magazine.c \
|
2012-05-22 09:17:11 -04:00
|
|
|
$(srcdir)/cogl-gles2-context-private.h \
|
2012-03-05 22:21:30 -05:00
|
|
|
$(srcdir)/cogl-gles2-context.c \
|
2012-08-31 19:04:00 -04:00
|
|
|
$(srcdir)/cogl-framebuffer-gl-private.h \
|
|
|
|
$(srcdir)/cogl-framebuffer-gl.c \
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2011-12-19 09:38:28 -05:00
|
|
|
if USE_GLIB
|
2012-02-17 17:57:50 -05:00
|
|
|
cogl_experimental_h += \
|
2011-12-19 09:38:28 -05:00
|
|
|
$(srcdir)/cogl-glib-source.h
|
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/cogl-glib-source.c
|
|
|
|
endif
|
|
|
|
|
2010-05-19 11:13:07 -04:00
|
|
|
if SUPPORT_XLIB
|
2012-02-17 17:57:50 -05:00
|
|
|
cogl_1_public_h += \
|
2011-10-17 12:55:35 -04:00
|
|
|
$(srcdir)/cogl-clutter-xlib.h \
|
2011-06-28 09:16:24 -04:00
|
|
|
$(srcdir)/cogl-xlib-renderer.h
|
|
|
|
|
2010-11-03 20:27:47 -04:00
|
|
|
cogl_experimental_h += \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/winsys/cogl-texture-pixmap-x11.h \
|
|
|
|
$(srcdir)/cogl-xlib.h
|
2010-05-25 13:56:14 -04:00
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
cogl_sources_c += \
|
2011-06-28 09:16:24 -04:00
|
|
|
$(srcdir)/cogl-x11-renderer-private.h \
|
|
|
|
$(srcdir)/cogl-xlib-renderer-private.h \
|
|
|
|
$(srcdir)/cogl-xlib-renderer.c \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/cogl-xlib.c \
|
2011-05-06 12:10:42 -04:00
|
|
|
$(srcdir)/cogl-xlib-private.h \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/winsys/cogl-texture-pixmap-x11.c \
|
|
|
|
$(srcdir)/winsys/cogl-texture-pixmap-x11-private.h
|
2009-10-08 07:08:21 -04:00
|
|
|
endif
|
2010-05-19 11:13:07 -04:00
|
|
|
if SUPPORT_GLX
|
2010-09-13 06:30:30 -04:00
|
|
|
cogl_sources_c += \
|
2011-06-28 09:16:24 -04:00
|
|
|
$(srcdir)/cogl-glx-renderer-private.h \
|
|
|
|
$(srcdir)/cogl-glx-display-private.h \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-glx-feature-functions.h \
|
2012-03-06 13:21:28 -05:00
|
|
|
$(srcdir)/winsys/cogl-winsys-glx-private.h \
|
2010-11-05 08:28:33 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-glx.c
|
2010-05-19 11:13:07 -04:00
|
|
|
endif
|
2011-05-09 12:48:50 -04:00
|
|
|
if SUPPORT_WGL
|
2012-02-17 17:57:50 -05:00
|
|
|
cogl_experimental_h += \
|
2011-06-28 11:06:45 -04:00
|
|
|
$(srcdir)/cogl-win32-renderer.h
|
|
|
|
|
2011-05-09 12:48:50 -04:00
|
|
|
cogl_sources_c += \
|
2011-06-28 08:38:50 -04:00
|
|
|
$(srcdir)/cogl-win32-renderer.c \
|
2012-03-06 13:21:28 -05:00
|
|
|
$(srcdir)/winsys/cogl-winsys-wgl-private.h \
|
2011-05-09 12:48:50 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-wgl.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-wgl-feature-functions.h
|
|
|
|
endif
|
2012-03-20 09:21:18 -04:00
|
|
|
if SUPPORT_WAYLAND_EGL_SERVER
|
|
|
|
cogl_experimental_h += \
|
|
|
|
$(srcdir)/cogl-wayland-server.h
|
|
|
|
endif
|
2011-03-17 15:31:34 -04:00
|
|
|
if SUPPORT_EGL_PLATFORM_WAYLAND
|
2012-02-17 17:57:50 -05:00
|
|
|
cogl_experimental_h += \
|
2012-03-20 09:21:18 -04:00
|
|
|
$(srcdir)/cogl-wayland-renderer.h \
|
|
|
|
$(srcdir)/cogl-wayland-client.h
|
2011-12-08 12:24:40 -05:00
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-wayland.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-wayland-private.h
|
2011-03-17 15:31:34 -04:00
|
|
|
endif
|
2011-11-07 12:16:13 -05:00
|
|
|
if SUPPORT_EGL_PLATFORM_KMS
|
2012-02-17 17:57:50 -05:00
|
|
|
cogl_experimental_h += \
|
2012-01-30 06:06:41 -05:00
|
|
|
$(srcdir)/cogl-kms-renderer.h \
|
|
|
|
$(srcdir)/cogl-kms-display.h
|
2011-11-07 12:16:13 -05:00
|
|
|
cogl_sources_c += \
|
2011-12-08 12:24:40 -05:00
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-kms.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-kms-private.h
|
|
|
|
endif
|
2011-12-13 11:23:25 -05:00
|
|
|
if SUPPORT_EGL_PLATFORM_XLIB
|
2011-12-08 12:24:40 -05:00
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-x11.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-x11-private.h
|
|
|
|
endif
|
|
|
|
if SUPPORT_EGL_PLATFORM_POWERVR_NULL
|
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-null.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-null-private.h
|
|
|
|
endif
|
|
|
|
if SUPPORT_EGL_PLATFORM_GDL
|
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-gdl.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-gdl-private.h
|
|
|
|
endif
|
|
|
|
if SUPPORT_EGL_PLATFORM_ANDROID
|
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-android.c \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-android-private.h
|
2011-11-07 12:16:13 -05:00
|
|
|
endif
|
2011-07-11 10:21:06 -04:00
|
|
|
if SUPPORT_EGL
|
2012-07-10 09:14:07 -04:00
|
|
|
cogl_experimental_h += \
|
|
|
|
$(srcdir)/cogl-egl.h
|
|
|
|
cogl_nodist_experimental_h += \
|
|
|
|
$(builddir)/cogl-egl-defines.h
|
|
|
|
|
2011-05-16 11:43:30 -04:00
|
|
|
cogl_sources_c += \
|
2011-05-24 17:34:10 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-egl.c \
|
2011-07-11 10:21:06 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-feature-functions.h \
|
2011-05-24 17:34:10 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-egl-private.h
|
2011-05-16 11:43:30 -04:00
|
|
|
endif
|
2011-12-14 07:09:53 -05:00
|
|
|
if SUPPORT_SDL
|
2012-04-06 06:16:19 -04:00
|
|
|
cogl_experimental_h += $(srcdir)/cogl-sdl.h
|
2011-12-14 07:09:53 -05:00
|
|
|
cogl_sources_c += \
|
2012-03-06 13:21:28 -05:00
|
|
|
$(srcdir)/winsys/cogl-winsys-sdl-private.h \
|
2012-04-06 06:16:19 -04:00
|
|
|
$(srcdir)/winsys/cogl-winsys-sdl.c \
|
|
|
|
$(srcdir)/cogl-sdl.c
|
2011-12-14 07:09:53 -05:00
|
|
|
endif
|
2012-06-14 09:42:16 -04:00
|
|
|
if SUPPORT_SDL2
|
|
|
|
cogl_experimental_h += $(srcdir)/cogl-sdl.h
|
|
|
|
cogl_sources_c += \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-sdl-private.h \
|
|
|
|
$(srcdir)/winsys/cogl-winsys-sdl2.c \
|
|
|
|
$(srcdir)/cogl-sdl.c
|
|
|
|
endif
|
2009-10-08 07:08:21 -04:00
|
|
|
|
2009-10-23 07:15:25 -04:00
|
|
|
EXTRA_DIST += stb_image.c
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
# glib-mkenums rules
|
|
|
|
glib_enum_h = cogl-enum-types.h
|
|
|
|
glib_enum_c = cogl-enum-types.c
|
2012-02-17 17:57:50 -05:00
|
|
|
glib_enum_headers = $(cogl_1_public_h)
|
2010-09-13 06:30:30 -04:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.enums
|
|
|
|
|
2011-02-09 21:32:11 -05:00
|
|
|
lib_LTLIBRARIES += libcogl.la
|
2010-09-13 06:30:30 -04:00
|
|
|
|
2011-04-19 12:40:57 -04:00
|
|
|
libcogl_la_LIBADD = -lm $(COGL_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
|
2011-02-09 21:32:11 -05:00
|
|
|
if SUPPORT_GLX
|
|
|
|
libcogl_la_LIBADD += -ldl
|
|
|
|
endif
|
|
|
|
# XXX: The aim is to eventually get rid of all private API exports
|
2011-05-05 17:04:07 -04:00
|
|
|
# for cogl-pango.
|
2011-02-09 21:32:11 -05:00
|
|
|
libcogl_la_LDFLAGS = \
|
|
|
|
-no-undefined \
|
|
|
|
-version-info @COGL_LT_CURRENT@:@COGL_LT_REVISION@:@COGL_LT_AGE@ \
|
|
|
|
-export-dynamic \
|
2011-07-07 15:44:56 -04:00
|
|
|
-export-symbols-regex "^(cogl|_cogl_debug_flags|_cogl_atlas_new|_cogl_atlas_add_reorganize_callback|_cogl_atlas_reserve_space|_cogl_callback|_cogl_util_get_eye_planes_for_screen_poly|_cogl_atlas_texture_remove_reorganize_callback|_cogl_atlas_texture_add_reorganize_callback|_cogl_texture_foreach_sub_texture_in_region|_cogl_atlas_texture_new_with_size|_cogl_profile_trace_message|_cogl_context_get_default).*"
|
2011-02-09 21:32:11 -05:00
|
|
|
|
|
|
|
libcogl_la_SOURCES = $(cogl_sources_c)
|
|
|
|
nodist_libcogl_la_SOURCES = $(BUILT_SOURCES)
|
2010-09-13 06:30:30 -04:00
|
|
|
|
2010-11-03 20:27:47 -04:00
|
|
|
# Cogl installed headers
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
cogl_headers = \
|
2012-02-17 17:57:50 -05:00
|
|
|
$(cogl_1_public_h) \
|
2009-10-23 07:15:25 -04:00
|
|
|
$(srcdir)/cogl-deprecated.h \
|
2011-05-16 10:41:25 -04:00
|
|
|
$(srcdir)/cogl-pango.h \
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2011-02-09 21:32:11 -05:00
|
|
|
coglincludedir = $(includedir)/cogl/cogl
|
|
|
|
coglinclude_HEADERS = $(cogl_headers) $(cogl_experimental_h)
|
2012-07-10 09:14:07 -04:00
|
|
|
nodist_coglinclude_HEADERS = $(cogl_nodist_experimental_h) cogl-defines.h cogl-enum-types.h
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
2012-08-16 09:17:18 -04:00
|
|
|
cogl_proto_includedir = $(includedir)/cogl/cogl/gl-prototypes
|
2012-03-05 22:21:30 -05:00
|
|
|
cogl_proto_include_HEADERS = $(cogl_gl_prototypes_h)
|
|
|
|
|
2011-12-08 03:16:58 -05:00
|
|
|
dist-hook: ../build/win32/vs9/cogl.vcproj ../build/win32/vs10/cogl.vcxproj ../build/win32/vs10/cogl.vcxproj.filters ../build/win32/gen-enums.bat
|
2011-05-12 05:06:32 -04:00
|
|
|
|
|
|
|
# I know those filters below don't look nice, but this is to ensure the right files are in the Project files only *once*
|
|
|
|
../build/win32/vs9/cogl.vcproj: $(top_srcdir)/build/win32/vs9/cogl.vcprojin
|
|
|
|
for F in `echo $(cogl_sources_c) $(BUILT_SOURCES) | tr '/' '\\'`; do \
|
|
|
|
case $$F in \
|
2012-03-30 04:45:34 -04:00
|
|
|
*-egl.c|*-egl-*.c|*-glx.c|*-xlib*.c|*-x11.c|*.wgl.c|*-gl.c|*-gles.c|*-kms.c|*-sdl.c|*.h) ;; \
|
2011-05-12 05:06:32 -04:00
|
|
|
*.c) echo ' <File RelativePath="..\..\..\cogl\'$$F'" />' \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done >cogl.sourcefiles
|
|
|
|
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/cogl.vcprojin >$@
|
|
|
|
rm cogl.sourcefiles
|
|
|
|
|
|
|
|
../build/win32/vs10/cogl.vcxproj: $(top_srcdir)/build/win32/vs10/cogl.vcxprojin
|
|
|
|
for F in `echo $(cogl_sources_c) $(BUILT_SOURCES) | tr '/' '\\'`; do \
|
|
|
|
case $$F in \
|
2012-03-30 04:45:34 -04:00
|
|
|
*-egl.c|*-egl-*.c|*-glx.c|*-xlib*.c|*-x11.c|*.wgl.c|*-gl.c|*-gles.c|*-kms.c|*-sdl.c|*.h) ;; \
|
2011-05-12 05:06:32 -04:00
|
|
|
*.c) echo ' <ClCompile Include="..\..\..\cogl\'$$F'" />' \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done >cogl.vs10.sourcefiles
|
|
|
|
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/cogl.vcxprojin >$@
|
|
|
|
rm cogl.vs10.sourcefiles
|
|
|
|
|
|
|
|
../build/win32/vs10/cogl.vcxproj.filters: $(top_srcdir)/build/win32/vs10/cogl.vcxproj.filtersin
|
|
|
|
for F in `echo $(cogl_sources_c) $(BUILT_SOURCES) | tr '/' '\\'`; do \
|
|
|
|
case $$F in \
|
2012-03-30 04:45:34 -04:00
|
|
|
*-egl.c|*-egl-*.c|*-glx.c|*-xlib*.c|*-x11.c|*.wgl.c|*-gl.c|*-gles.c|*-kms.c|*-sdl.c|*.h) ;; \
|
2011-05-12 05:06:32 -04:00
|
|
|
*.c) echo ' <ClCompile Include="..\..\..\cogl\'$$F'"><Filter>Sources</Filter></ClCompile>' \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done >cogl.vs10.sourcefiles.filters
|
|
|
|
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/cogl.vcxproj.filtersin >$@
|
|
|
|
rm cogl.vs10.sourcefiles.filters
|
|
|
|
|
2011-12-08 03:16:58 -05:00
|
|
|
cogl.vsenums_h:
|
2012-08-16 11:38:20 -04:00
|
|
|
echo 'perl %1\bin\glib-mkenums --template ../../cogl/cogl-enum-types.h.in ' >vsenums_h.temp1
|
2012-02-17 17:57:50 -05:00
|
|
|
for F in `echo $(cogl_1_public_h) $(srcdir)/cogl-win32-renderer.h`; do \
|
2011-12-08 03:16:58 -05:00
|
|
|
case $$F in \
|
|
|
|
*xlib*.h|*wayland*.h) ;; \
|
|
|
|
*.h) echo '../../cogl'$$F' ' \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done >>vsenums_h.temp1
|
|
|
|
cat vsenums_h.temp1 | sed 's_/cogl./_/cogl/_' >vsenums_h.temp
|
|
|
|
cat vsenums_h.temp | tr -d '\n' >>$@
|
|
|
|
echo '> ..\..\cogl\cogl-enum-types.h' >>$@
|
|
|
|
rm vsenums_h.temp1
|
|
|
|
rm vsenums_h.temp
|
|
|
|
|
|
|
|
cogl.vsenums_c:
|
2012-08-16 11:38:20 -04:00
|
|
|
echo 'perl %1\bin\glib-mkenums --template ../../cogl/cogl-enum-types.c.in ' >vsenums_c.temp1
|
2012-02-17 17:57:50 -05:00
|
|
|
for F in `echo $(cogl_1_public_h) $(srcdir)/cogl-win32-renderer.h`; do \
|
2011-12-08 03:16:58 -05:00
|
|
|
case $$F in \
|
|
|
|
*xlib*.h|*wayland*.h) ;; \
|
|
|
|
*.h) echo '../../cogl'$$F' ' \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done >>vsenums_c.temp1
|
|
|
|
cat vsenums_c.temp1 | sed 's_/cogl./_/cogl/_' >vsenums_c.temp
|
|
|
|
cat vsenums_c.temp | tr -d '\n' >>$@
|
|
|
|
echo '> ..\..\cogl\cogl-enum-types.c' >>$@
|
|
|
|
rm vsenums_c.temp1
|
|
|
|
rm vsenums_c.temp
|
|
|
|
|
|
|
|
../build/win32/gen-enums.bat: cogl.vsenums_h cogl.vsenums_c
|
|
|
|
echo 'if exist ..\..\cogl\cogl-enum-types.h goto DONE_COGL_ENUMS_H' >$@
|
|
|
|
cat cogl.vsenums_h >>$@
|
|
|
|
echo ':DONE_COGL_ENUMS_H' >>$@
|
|
|
|
echo 'if exist ..\..\cogl\cogl-enum-types.c goto DONE_COGL_ENUMS_C' >>$@
|
|
|
|
cat cogl.vsenums_c >>$@
|
|
|
|
echo ':DONE_COGL_ENUMS_C' >>$@
|
|
|
|
rm cogl.vsenums_h
|
|
|
|
rm cogl.vsenums_c
|
|
|
|
|
2011-05-12 05:06:32 -04:00
|
|
|
EXTRA_DIST += \
|
2012-05-14 23:52:13 -04:00
|
|
|
cogl-defines.h.win32.in \
|
2011-05-12 05:06:32 -04:00
|
|
|
cogl-defines.h.win32 \
|
2012-05-14 23:52:13 -04:00
|
|
|
cogl-defines.h.win32_SDL.in \
|
2011-12-16 04:18:31 -05:00
|
|
|
cogl-defines.h.win32_SDL \
|
2012-05-14 23:52:13 -04:00
|
|
|
cogl-gl-header.h.win32 \
|
2011-12-15 07:31:04 -05:00
|
|
|
cogl.symbols \
|
|
|
|
cogl.rc.in \
|
|
|
|
cogl.rc
|
2011-05-12 05:06:32 -04:00
|
|
|
|
2011-12-15 07:31:04 -05:00
|
|
|
DISTCLEANFILES += ../build/win32/vs9/cogl.vcproj ../build/win32/vs10/cogl.vcxproj ../build/win32/vs10/cogl.vcxproj.filters ../build/win32/gen-enums.bat cogl.rc
|
2011-05-12 05:06:32 -04:00
|
|
|
|
2010-09-03 06:09:57 -04:00
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
|
|
|
|
INTROSPECTION_GIRS =
|
|
|
|
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
if HAVE_INTROSPECTION
|
2011-02-09 21:32:11 -05:00
|
|
|
Cogl-1.0.gir: libcogl.la Makefile
|
|
|
|
|
|
|
|
Cogl_1_0_gir_NAMESPACE = Cogl
|
|
|
|
Cogl_1_0_gir_VERSION = 1.0
|
|
|
|
Cogl_1_0_gir_LIBS = libcogl.la
|
2012-02-17 17:57:50 -05:00
|
|
|
Cogl_1_0_gir_FILES = $(cogl_1_public_h) cogl-enum-types.h
|
|
|
|
Cogl_1_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS) -UCOGL_ENABLE_EXPERIMENTAL_API -UCOGL_ENABLE_EXPERIMENTAL_2_0_API
|
2011-02-09 21:32:11 -05:00
|
|
|
Cogl_1_0_gir_INCLUDES = GL-1.0 GObject-2.0
|
|
|
|
Cogl_1_0_gir_EXPORT_PACKAGES = cogl-1.0
|
|
|
|
Cogl_1_0_gir_SCANNERFLAGS = --warn-all --c-include='cogl/cogl.h'
|
|
|
|
|
|
|
|
INTROSPECTION_GIRS += Cogl-1.0.gir
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
2010-09-12 21:01:21 -04:00
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
|
2011-05-06 11:53:43 -04:00
|
|
|
typelibdir = $(libdir)/girepository-1.0
|
|
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys
As part of an incremental process to have Cogl be a standalone project we
want to re-consider how we organise the Cogl source code.
Currently this is the structure I'm aiming for:
cogl/
cogl/
<put common source here>
winsys/
cogl-glx.c
cogl-wgl.c
driver/
gl/
gles/
os/ ?
utils/
cogl-fixed
cogl-matrix-stack?
cogl-journal?
cogl-primitives?
pango/
The new winsys component is a starting point for migrating window system
code (i.e. x11,glx,wgl,osx,egl etc) from Clutter to Cogl.
The utils/ and pango/ directories aren't added by this commit, but they are
noted because I plan to add them soon.
Overview of the planned structure:
* The winsys/ API is the API that binds OpenGL to a specific window system,
be that X11 or win32 etc. Example are glx, wgl and egl. Much of the logic
under clutter/{glx,osx,win32 etc} should migrate here.
* Note there is also the idea of a winsys-base that may represent a window
system for which there are multiple winsys APIs. An example of this is
x11, since glx and egl may both be used with x11. (currently only Clutter
has the idea of a winsys-base)
* The driver/ represents a specific varient of OpenGL. Currently we have "gl"
representing OpenGL 1.4-2.1 (mostly fixed function) and "gles" representing
GLES 1.1 (fixed funciton) and 2.0 (fully shader based)
* Everything under cogl/ should fundamentally be supporting access to the
GPU. Essentially Cogl's most basic requirement is to provide a nice GPU
Graphics API and drawing a line between this and the utility functionality
we add to support Clutter should help keep this lean and maintainable.
* Code under utils/ as suggested builds on cogl/ adding more convenient
APIs or mechanism to optimize special cases. Broadly speaking you can
compare cogl/ to OpenGL and utils/ to GLU.
* clutter/pango will be moved to clutter/cogl/pango
How some of the internal configure.ac/pkg-config terminology has changed:
backendextra -> CLUTTER_WINSYS_BASE # e.g. "x11"
backendextralib -> CLUTTER_WINSYS_BASE_LIB # e.g. "x11/libclutter-x11.la"
clutterbackend -> {CLUTTER,COGL}_WINSYS # e.g. "glx"
CLUTTER_FLAVOUR -> {CLUTTER,COGL}_WINSYS
clutterbackendlib -> CLUTTER_WINSYS_LIB
CLUTTER_COGL -> COGL_DRIVER # e.g. "gl"
Note: The CLUTTER_FLAVOUR and CLUTTER_COGL defines are kept for apps
As the first thing to take advantage of the new winsys component in Cogl;
cogl_get_proc_address() has been moved from cogl/{gl,gles}/cogl.c into
cogl/common/cogl.c and this common implementation first trys
_cogl_winsys_get_proc_address() but if that fails then it falls back to
gmodule.
2009-07-27 21:02:02 -04:00
|
|
|
endif
|