2009-05-29 07:31:47 -04:00
|
|
|
NULL =
|
|
|
|
|
|
|
|
V = @
|
|
|
|
Q = $(V:1=)
|
|
|
|
QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
|
|
|
|
QUIET_CP = $(Q:@=@echo ' CP '$@;)
|
|
|
|
|
2008-04-25 09:37:36 -04:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/clutter \
|
|
|
|
-I$(top_srcdir)/clutter/cogl \
|
2009-05-14 14:51:03 -04:00
|
|
|
-I$(top_srcdir)/clutter/cogl/common \
|
2008-04-25 09:37:36 -04:00
|
|
|
-I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
|
|
|
|
-I$(top_builddir)/clutter \
|
|
|
|
-I$(top_builddir)/clutter/cogl \
|
2009-01-12 06:21:06 -05:00
|
|
|
-DG_LOG_DOMAIN=\"Cogl-Common\" \
|
2009-05-14 18:23:00 -04:00
|
|
|
-DCLUTTER_COMPILATION
|
2008-04-25 09:37:36 -04:00
|
|
|
|
2009-05-29 07:31:47 -04:00
|
|
|
cogl_public_h = \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-bitmap.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-color.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-debug.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-fixed.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-material.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-matrix.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-offscreen.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-path.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-shader.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-texture.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-types.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-vertex-buffer.h \
|
|
|
|
$(top_builddir)/clutter/cogl/cogl.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-04-25 09:37:36 -04:00
|
|
|
noinst_LTLIBRARIES = libclutter-cogl-common.la
|
2009-05-29 07:31:47 -04:00
|
|
|
|
|
|
|
cogl-enum-types.h: stamp-cogl-enum-types.h
|
2009-05-29 09:27:55 -04:00
|
|
|
@true
|
2009-05-29 07:31:47 -04:00
|
|
|
stamp-cogl-enum-types.h: $(cogl_public_h) Makefile
|
|
|
|
$(QUIET_GEN)( $(GLIB_MKENUMS) \
|
|
|
|
--template $(srcdir)/cogl-enum-types.h.in \
|
|
|
|
$(cogl_public_h) ) > xgen-ceth \
|
|
|
|
&& (cmp -s xgen-ceth cogl-enum-types.h || cp -f xgen-ceth cogl-enum-types.h) \
|
2009-05-29 09:27:55 -04:00
|
|
|
&& cp -f cogl-enum-types.h $(top_builddir)/clutter/cogl/cogl-enum-types.h \
|
2009-05-29 07:31:47 -04:00
|
|
|
&& rm -f xgen-ceth \
|
|
|
|
&& echo timestamp > $(@F)
|
|
|
|
|
|
|
|
cogl-enum-types.c: cogl-enum-types.h
|
|
|
|
$(QUIET_GEN)( $(GLIB_MKENUMS) \
|
|
|
|
--template $(srcdir)/cogl-enum-types.c.in \
|
|
|
|
$(cogl_public_h) ) > xgen-cetc \
|
|
|
|
&& cp -f xgen-cetc cogl-enum-types.c \
|
|
|
|
&& rm -f xgen-cetc
|
|
|
|
|
|
|
|
BUILT_SOURCES = cogl-enum-types.h cogl-enum-types.c
|
2008-04-25 09:37:36 -04:00
|
|
|
|
2009-05-19 11:00:18 -04:00
|
|
|
libclutter_cogl_common_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(COGL_DEBUG_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
2009-05-14 18:23:00 -04:00
|
|
|
libclutter_cogl_common_la_LIBADD = -lm $(CLUTTER_LIBS)
|
2008-06-23 12:43:49 -04:00
|
|
|
libclutter_cogl_common_la_SOURCES = \
|
2009-05-29 07:31:47 -04:00
|
|
|
$(top_builddir)/clutter/cogl/common/cogl-enum-types.h \
|
|
|
|
$(top_builddir)/clutter/cogl/common/cogl-enum-types.c \
|
2008-06-23 12:43:49 -04:00
|
|
|
cogl-handle.h \
|
2009-05-14 14:51:03 -04:00
|
|
|
cogl-internal.h \
|
2009-03-30 12:07:31 -04:00
|
|
|
cogl.c \
|
2008-06-23 12:43:49 -04:00
|
|
|
cogl-util.h \
|
|
|
|
cogl-util.c \
|
2009-04-30 13:00:22 -04:00
|
|
|
cogl-bitmap-private.h \
|
2008-06-23 12:43:49 -04:00
|
|
|
cogl-bitmap.c \
|
|
|
|
cogl-bitmap-fallback.c \
|
2009-02-24 13:51:25 -05:00
|
|
|
cogl-current-matrix.c \
|
|
|
|
cogl-current-matrix.h \
|
2008-06-23 12:43:49 -04:00
|
|
|
cogl-primitives.h \
|
|
|
|
cogl-primitives.c \
|
|
|
|
cogl-bitmap-pixbuf.c \
|
|
|
|
cogl-clip-stack.h \
|
2008-10-30 12:37:55 -04:00
|
|
|
cogl-clip-stack.c \
|
2008-10-30 12:50:07 -04:00
|
|
|
cogl-fixed.c \
|
2008-11-10 13:53:14 -05:00
|
|
|
cogl-color.c \
|
2009-01-23 10:23:49 -05:00
|
|
|
cogl-vertex-buffer-private.h \
|
|
|
|
cogl-vertex-buffer.c \
|
Adds a CoglMaterial abstraction, which includes support for multi-texturing
My previous work to provide muti-texturing support has been extended into
a CoglMaterial abstraction that adds control over the texture combine
functions (controlling how multiple texture layers are blended together),
the gl blend function (used for blending the final primitive with the
framebuffer), the alpha function (used to discard fragments based on
their alpha channel), describing attributes such as a diffuse, ambient and
specular color (for use with the standard OpenGL lighting model), and
per layer rotations. (utilizing the new CoglMatrix utility API)
For now the only way this abstraction is exposed is via a new
cogl_material_rectangle function, that is similar to cogl_texture_rectangle
but doesn't take a texture handle (the source material is pulled from
the context), and the array of texture coordinates is extended to be able
to supply coordinates for each layer.
Note: this function doesn't support sliced textures; supporting sliced
textures is a non trivial problem, considering the ability to rotate layers.
Note: cogl_material_rectangle, has quite a few workarounds, for a number of
other limitations within Cogl a.t.m.
Note: The GLES1/2 multi-texturing support has yet to be updated to use
the material abstraction.
2008-12-11 15:11:30 -05:00
|
|
|
cogl-matrix.c \
|
2009-02-24 13:51:25 -05:00
|
|
|
cogl-matrix-stack.c \
|
|
|
|
cogl-matrix-stack.h \
|
2009-01-29 11:00:15 -05:00
|
|
|
cogl-material.c \
|
2009-02-23 07:47:02 -05:00
|
|
|
cogl-material-private.h \
|
2009-05-10 19:40:41 -04:00
|
|
|
cogl-blend-string.c \
|
|
|
|
cogl-blend-string.h \
|
2009-05-29 07:31:47 -04:00
|
|
|
cogl-debug.c \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-05-29 12:10:27 -04:00
|
|
|
EXTRA_DIST = stb_image.c cogl-enum-types.h.in cogl-enum-types.c.in
|
2009-05-29 07:31:47 -04:00
|
|
|
CLEANFILES = stamp-cogl-enum-types.h
|
|
|
|
DISTCLEANFILES = cogl-enum-types.h cogl-enum-types.c
|