summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Don't build cogl-gles2-gears if configured with --disable-cogl-gles2Neil Roberts2012-08-061-1/+4
| | | | | | | | | | | The cogl-gles2-gears example will fail to build unless --enable-cogl-gles2 is enabled in the configure script because it depends on libcogl-gles2. This patch makes it only conditionally build the example depending on the BUILD_COGL_GLES2 automake conditional. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 7f57e9c444b6353ac17e920ea4fc63ebe3cc29d3)
* Adds gles2-context renderer constraintRobert Bragg2012-08-062-4/+16
| | | | | | | | | | | | | | This adds a new renderer constraint enum: COGL_RENDERER_CONSTRAINT_SUPPORTS_GLES2_CONTEXT that can be used by applications to ensure the renderer they connect to has support for creating a GLES2 context via cogl_gles2_context_new(). The cogl-gles2-context and cogl-gles2-gears examples and the conformance tests have been updated to use this constraint. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit ed61463d7194354b26624e8014859f0fbfc06a12)
* Adds a cogl-gles2-gears exampleRobert Bragg2012-08-062-1/+813
| | | | | | | | | This adds an example of using libcogl-gles2 as a way to port existing GLES 2.0 based code. This is a port of es2gears in the Mesa demos repo. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit fcb947178858e9d675c5f76e50510282c6b0bf8d)
* Adds initial GLES2 integration supportRobert Bragg2012-08-063-1/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to integrate existing GLES2 code with applications using Cogl as the rendering api. Currently all GLES2 usage is handled with separate GLES2 contexts to ensure that GLES2 api usage doesn't interfere with Cogl's own use of OpenGL[ES]. The api has been designed though so we can provide tighter integration later. The api would allow us to support GLES2 virtualized on top of an OpenGL/GLX driver as well as GLES2 virtualized on the core rendering api of Cogl itself. Virtualizing the GLES2 support on Cogl will allow us to take advantage of Cogl debugging facilities as well as let us optimize the cost of allocating multiple GLES2 contexts and switching between them which can both be very expensive with many drivers. As as a side effect of this patch Cogl can also now be used as a portable window system binding API for GLES2 as an alternative to EGL. Parts of this patch are based on work done by Tomeu Vizoso <tomeu.vizoso@collabora.com> who did the first iteration of adding GLES2 API support to Cogl so that WebGL support could be added to webkit-clutter. This patch adds a very minimal cogl-gles2-context example that shows how to create a gles2 context, clear the screen to a random color and also draw a triangle with the cogl api. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 4bb6eff3dbd50d8fef7d6bdbed55c5aaa70036a8)
* Switch use of primitive glib types to c99 equivalentsRobert Bragg2012-08-067-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The coding style has for a long time said to avoid using redundant glib data types such as gint or gchar etc because we feel that they make the code look unnecessarily foreign to developers coming from outside of the Gnome developer community. Note: When we tried to find the historical rationale for the types we just found that they were apparently only added for consistent syntax highlighting which didn't seem that compelling. Up until now we have been continuing to use some of the platform specific type such as gint{8,16,32,64} and gsize but this patch switches us over to using the standard c99 equivalents instead so we can further ensure that our code looks familiar to the widest range of C developers who might potentially contribute to Cogl. So instead of using the gint{8,16,32,64} and guint{8,16,32,64} types this switches all Cogl code to instead use the int{8,16,32,64}_t and uint{8,16,32,64}_t c99 types instead. Instead of gsize we now use size_t For now we are not going to use the c99 _Bool type and instead we have introduced a new CoglBool type to use instead of gboolean. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 5967dad2400d32ca6319cef6cb572e81bf2c15f0)
* Removes all remaining use of CoglHandleRobert Bragg2012-08-061-2/+2
| | | | | | | | | | | | | | | | | | | Removing CoglHandle has been an on going goal for quite a long time now and finally this patch removes the last remaining uses of the CoglHandle type and the cogl_handle_ apis. Since the big remaining users of CoglHandle were the cogl_program_ and cogl_shader_ apis which have replaced with the CoglSnippets api this patch removes both of these apis. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 6ed3aaf4be21d605a1ed3176b3ea825933f85cf0) Since the original patch was done after removing deprecated API this back ported patch doesn't affect deprecated API and so actually this cherry-pick doesn't remove all remaining use of CoglHandle as it did for the master branch of Cogl.
* Rework sdl integration apiRobert Bragg2012-04-121-79/+26
| | | | | | | | | This re-works the SDL integration api to simplify the integration for application developers and also allow Cogl to know when the application is about to go idle waiting for events so it can perform idle book-keeping work. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* msaa: print GError message on onscreen alloc failureRobert Bragg2012-04-111-2/+2
| | | | | | | If we fail to allocate the onscreen framebuffer when first requesting 4x msaa then we now print the GError message. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Use cogl_framebuffer_draw_rectangle apiRobert Bragg2012-04-111-4/+5
| | | | | | | | Instead of using cogl_rectangle() this example now uses cogl_framebuffer_draw_rectangle(). This fixes a crash due to the example not pushing a current framebuffer before calling cogl_rectangle(). Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-crate: remove redundant g_type_initRobert Bragg2012-04-111-2/+0
| | | | | | | Cogl internally will call g_type_init if necessary so the cogl-crate example doesn't need to do this explicitly. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-crate: print GError message if texture load failsRobert Bragg2012-04-111-2/+2
| | | | | | | If we fail to load the crate texture then we now print error->message to hopefully give more insight into the failure to the user. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Create standalone public wayland client/server headersRobert Bragg2012-03-201-0/+1
| | | | | | | | | | | Because the wayland-client-protocol.h header defines symbols that collide with the wayland-server-protocol.h header we allow applications to explicitly ensure that they are only including one at a time by exposing corresponding <cogl/cogl-wayland-client.h> and <cogl/cogl-wayland-server.h> headers. This also adds a missing guard to cogl-texture-2d.h that it isn't included directly. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Add -Wmissing-declarations to maintainer flags and fix problemsNeil Roberts2012-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option to GCC makes it give a warning whenever a global function is defined without a declaration. This should catch cases were we've defined a function but forgot to put it in a header. In that case it is either only used within one file so we should make it static or we should declare it in a header. The following changes where made to fix problems: • Some functions were made static • cogl-path.h (the one containing the 1.0 API) was split into two files, one defining the functions and one defining the enums so that cogl-path.c can include the enum and function declarations from the 2.0 API as well as the function declarations from the 1.0 API. • cogl2-clip-state has been removed. This only had one experimental function called cogl_clip_push_from_path but as this is unstable we might as well remove it favour of the equivalent cogl_framebuffer_* API. • The GLX, SDL and WGL winsys's now have a private header to define their get_vtable function instead of directly declaring in the C file where it is called. • All places that were calling COGL_OBJECT_DEFINE need to have the cogl_is_whatever function declared so these have been added either as a public function or in a private header. • Some files that were not including the header containing their function declarations have been fixed to do so. • Any unused error quark functions have been removed. If we later want them we should add them back one by one and add a declaration for them in a header. • _cogl_is_framebuffer has been renamed to cogl_is_framebuffer and made a public function with a declaration in cogl-framebuffer.h • Similarly for CoglOnscreen. • cogl_vdraw_indexed_attributes is called cogl_framebuffer_vdraw_indexed_attributes in the header. The definition has been changed to match the header. • cogl_index_buffer_allocate has been removed. This had no declaration and I'm not sure what it's supposed to do. • CoglJournal has been changed to use the internal CoglObject macro so that it won't define an exported cogl_is_journal symbol. • The _cogl_blah_pointer_from_handle functions have been removed. CoglHandle isn't used much anymore anyway and in the few places where it is used I think it's safe to just use the implicit cast from void* to the right type. • The test-utils.h header for the conformance tests explicitly disables the -Wmissing-declaration option using a pragma because all of the tests declare their main function without a header. Any mistakes relating to missing declarations aren't really important for the tests. • cogl_quaternion_init_from_quaternion and init_from_matrix have been given declarations in cogl-quaternion.h Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogl-hello: use glib mainloop for portabilityRobert Bragg2012-03-051-23/+52
| | | | | | | To be a portable example this updates cogl-hello to use the glib mainloop instead of using g_poll. On OSX we plan to provide custom mainloop integration for glib which can't be abstracted by just using g_poll.
* tex-pixmap-x11: remove CoglHandle use + pass contextRobert Bragg2012-02-211-3/+9
| | | | | | | | | | | This also replaces use of CoglHandle with a CoglTexturePixmapX11 type instead. This patch also ensures the CoglTexturePixmapX11 constructor take an explicit CoglContext pointer and can return a GError consistent with other CoglTexture constructors. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* onscreen: move swap_buffer apis to onscreen namespaceRobert Bragg2012-02-217-10/+10
| | | | | | | | This moves all the cogl_framebuffer_ apis relating to swap buffer requests into the cogl_onscreen_ namespace since on CoglOnscreen framebuffers have back buffers that can be swapped. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Adds a context arg to cogl_pipeline_new()Robert Bragg2012-02-216-6/+6
| | | | | | | | | As we move towards Cogl 2.0 we are aiming to remove the need for a default global CoglContext and so everything should be explicitly related to a context somehow. CoglPipelines are top level objects and so this patch adds a context argument to cogl_pipeline_new(). Reviewed-by: Neil Roberts <neil@linux.intel.com>
* buffer: explicitly relate buffers to a contextRobert Bragg2012-02-096-7/+8
| | | | | | | | All CoglBuffer constructors now take an explicit CoglContext constructor. This is part of the on going effort to adapt to Cogl API so it no longer depends on a global, default context. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-crate: remove spurious cogl_set_depth_test_enabled callRobert Bragg2012-02-091-2/+0
| | | | | | | | | Use of cogl_set_depth_test_enabled() has been deprecated for some time and cogl-create already uses the new api for enabling depth testing so it was just an oversight that we forgot to remove the old call to cogl_set_depth_test_enabled(). Reviewed-by: Neil Roberts <neil@linux.intel.com>
* framebuffer: Add cogl_framebuffer draw methodsRobert Bragg2012-02-096-27/+18
| | | | | | | | | | | | | | | | | | | | | This adds cogl_framebuffer_ apis for drawing attributes and primitives that replace corresponding apis that depend on the default CoglContext. This is part of the on going effort to adapt the Cogl api so it no longer depends on a global context variable. All the new drawing functions also take an explicit pipeline argument since we are also aiming to avoid being a stateful api like Cairo and OpenGL. Being stateless makes it easier for orthogonal components to share access to the GPU. Being stateless should also minimize any impedance miss-match for those wanting to build higher level stateless apis on top of Cogl. Note: none of the legacy, global state options such as cogl_set_depth_test_enabled(), cogl_set_backface_culling_enabled() or cogl_program_use() are supported by these new drawing apis and if set will simply be silently ignored. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: use framebuffer matrix stack apisRobert Bragg2012-02-093-17/+23
| | | | | | | | | | Instead of using apis like cogl_push/pop_matrix, cogl_rotate, cogl_translate and cogl_scale all the examples now use the cogl_framebuffer_* equivalents. Our aim is to remove the need for the default CoglContext and so we are switching towards apis that are explicitly tied to a specific context. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: use cogl_framebuffer_clear4f not cogl_clearRobert Bragg2012-02-097-24/+12
| | | | | | | | | | | | | cogl_clear depends on the default CoglContext which we are trying to steer the API away from requiring. cogl_framebuffer_clear4f is explicitly passed a framebuffer pointer which is implicitly related to a specific context. This updates all the examples to use cogl_framebuffer_clear4f instead of cogl_clear and removes any redundant CoglColor that was previously passed to cogl_clear. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: Remove explicit framebuffer allocationsRobert Bragg2012-02-096-47/+4
| | | | | | | | | | | | | | | It used to be that cogl_framebuffer_allocate() had to be done explicitly but we have since made Cogl lazily allocate framebuffers when they are first used if they haven't already been explicitly allocated. Developers only need to explicitly allocate framebuffers if they are planning to gracefully handle any errors. In cases where the program will simply abort due to an allocation error they can simply rely on implicit allocation which will cause an abort on error. This updates the examples to not explicitly allocate the framebuffers since they all just abort on error anyway. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-info: print out the chosen renderer nameRobert Bragg2012-01-161-10/+51
| | | | | This updates cogl-info to use cogl_renderer_get_winsys_id() so it can print out the name of the chosen renderer winsys.
* Updates in line with latest wayland protocolRobert Bragg2012-01-161-6/+4
| | | | | | The shm buffer format enum values were renamed and the explicitly premultiplied format was dropped since it's now assumed if the buffer has an alpha component then it's premultiplied.
* cogl-crate: Optionally use the swap buffers notify mechanismNeil Roberts2012-01-091-3/+39
| | | | | | | | | If the swap buffers notify mechanism is advertised then the crate example will now register a callback for it and call g_poll with the proper timeout from cogl_context_begin_idle instead of trying to repaint continuously. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Update all of the examples to use cogl_poll_get_infoNeil Roberts2012-01-056-28/+139
| | | | | | | | | | | | | | | | | | The aim is that it should be a requirement that all Cogl applications hook their mainloops into Cogl so we should lead by examples. Most of the examples now just call cogl_poll_get_info and then g_poll with a zero timeout so that they can continue to constantly redraw. The SDL example is a bit special because SDL makes it very difficult to wait on either a timeout or any file descriptors. The SDL winsys is documented not to require blocking on any file descriptors so we can ignore that. It implements the timeout by adding an SDL timer which pushes an event to the queue to wake up SDL_GetEvent. The Cogland example was already using the glib main loop so that one has been updated to add the CoglGLibSource to it. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Add an example combining SDL and CoglNeil Roberts2011-12-142-0/+124
| | | | | | | | This adds a simple example based on the hello example but that forces the SDL winsys and listens for mouse motion events to move the triangle. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogland: Fix crash when frame callback is destroyed before emittedNeil Roberts2011-12-141-7/+16
| | | | | | | | | | | | If a frame callback is destroyed before it is invoked then the struct would be freed but it would not be removed from the array of callbacks so when cogland later tried to emit the callback it would crash. This patch instead stores the callbacks in a GQueue with embedded list nodes so that they can be removed from the list in the resource destructor. That way it doesn't matter how the resource is destroyed, it will still get removed from the list. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogland: Update to the new shell interfaceNeil Roberts2011-12-141-27/+101
| | | | | | | | | | Wayland has changed so that the shell interface now only has one function which returns a shell surface for the surface. This patch makes it create a dummy service in the same way that the wayland demo compositor does. The implementation of the shell_surface_interface for that dummy service is all no-ops. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogland: Remove tabsNeil Roberts2011-12-141-11/+11
| | | | | | Tabs make me sad. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogland: This updates the example wayland compositorRobert Bragg2011-12-071-108/+249
| | | | | | | | | | This updates the cogland Wayland compositor example with is an extremely minimal Wayland compositor. It demonstrates a multi(4)-head compositor whereby client buffers are simply stretched to cover all outputs. No input or shell features are implemented since it's really only for demonstrating the use of Cogl. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: Query the size of the framebufferRob Bradford2011-11-141-0/+3
| | | | | | | | The size of the framebuffer may not be the size of the framebuffer that we requested - we should use the actual size of the framebuffer in the calculations to position the crate in the center. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Remove inclusion of Xlib headers in Cogl headersZan Dobersek2011-11-012-0/+2
| | | | | | | | | | | Xlib headers define many trivially named objects which can later cause name collision problems when only cogl.h header is included in a program or library. Xlib headers are now only included through including the standalone header cogl-xlib.h. https://bugzilla.gnome.org/show_bug.cgi?id=661174 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* crate: Use indicesJasper St. Pierre2011-11-011-22/+19
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=661019 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* tests: Adds a really simple cogl-info programRobert Bragg2011-11-012-1/+143
| | | | | | | | | It could be nice to extend this as Cogl gains more APIs for introspecting its own features but for now cogl-info just uses the new cogl_foreach_feature() API to enumerate the available features for a default context and prints those to the terminal. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: Adds a simple 4x msaa exampleRobert Bragg2011-10-282-1/+115
| | | | | | | | | This adds a very basic test of onscreen and offscreen multisample rendering with 4 samples per pixel. The test simply draws two triangles; the one on the left is rendered directly to the onscreen framebuffer and the other is first rendered offscreen before copying it onscreen. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Fix make distRico Tzschichholz2011-10-181-0/+1
| | | | Add crate.jpg to EXTRA_DIST to make sure it gets pulled in
* Rotate according to time not number of frames in the crate exampleNeil Roberts2011-10-171-8/+14
| | | | | | | | | | Previously the crate example incremented the angle of rotation of the cube every frame so depending on the framerate the cube might rotate too fast to see. This just changes it to calculate the rotation based on the elapsed time using a GTimer. The rate that frames are drawn is unaffected. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* examples: Allow installing of examplesRobert Bragg2011-10-145-19/+30
| | | | | | | | | | | This namespaces all of the examples and marks them for installation if --enable-examples-install has been passed to ./configure. This simplifies packaging the examples which can be quite convenient for smoke testing Cogl on various platform. https://bugzilla.gnome.org/show_bug.cgi?id=656755 Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Add an option to avoid defining G_DISABLE_DEPRECATEDNeil Roberts2011-09-271-5/+0
| | | | | | | | | | | | G_DISABLE_DEPRECATED is only intended for developers of Cogl and it sometimes breaks the build for people just trying to build a release. This patch adds an option to enable deprecated Glib features. By default it is enabled for non-git versions of Cogl. The patch is based on similar code in Clutter except it adds the flags to COGL_EXTRA_CFLAGS instead of having a separate variable. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Add a strong CoglTexture type to replace CoglHandleRobert Bragg2011-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the on going, incremental effort to purge the non type safe CoglHandle type from the Cogl API this patch tackles most of the CoglHandle uses relating to textures. We'd postponed making this change for quite a while because we wanted to have a clearer understanding of how we wanted to evolve the texture APIs towards Cogl 2.0 before exposing type safety here which would be difficult to change later since it would imply breaking APIs. The basic idea that we are steering towards now is that CoglTexture can be considered to be the most primitive interface we have for any object representing a texture. The texture interface would provide roughly these methods: cogl_texture_get_width cogl_texture_get_height cogl_texture_can_repeat cogl_texture_can_mipmap cogl_texture_generate_mipmap; cogl_texture_get_format cogl_texture_set_region cogl_texture_get_region Besides the texture interface we will then start to expose types corresponding to specific texture types: CoglTexture2D, CoglTexture3D, CoglTexture2DSliced, CoglSubTexture, CoglAtlasTexture and CoglTexturePixmapX11. We will then also expose an interface for the high-level texture types we have (such as CoglTexture2DSlice, CoglSubTexture and CoglAtlasTexture) called CoglMetaTexture. CoglMetaTexture is an additional interface that lets you iterate a virtual region of a meta texture and get mappings of primitive textures to sub-regions of that virtual region. Internally we already have this kind of abstraction for dealing with sliced texture, sub-textures and atlas textures in a consistent way, so this will just make that abstraction public. The aim here is to clarify that there is a difference between primitive textures (CoglTexture2D/3D) and some of the other high-level textures, and also enable developers to implement primitives that can support meta textures since they can only be used with the cogl_rectangle API currently. The thing that's not so clean-cut with this are the texture constructors we have currently; such as cogl_texture_new_from_file which no longer make sense when CoglTexture is considered to be an interface. These will basically just become convenient factory functions and it's just a bit unusual that they are within the cogl_texture namespace. It's worth noting here that all the texture type APIs will also have their own type specific constructors so these functions will only be used for the convenience of being able to create a texture without really wanting to know the details of what type of texture you need. Longer term for 2.0 we may come up with replacement names for these factory functions or the other thing we are considering is designing some asynchronous factory functions instead since it's so often detrimental to application performance to be blocked waiting for a texture to be uploaded to the GPU. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: use $(COGL_PANGO_DEP_LIBS) for cogl-pango usersRobert Bragg2011-09-051-1/+1
| | | | | | | | | | The crate example uses the cogl_pango API and perviously we just explicitly said to link with the libcogl-pango.la but that doesn't seem to be enough (not really sure why since libtool should know the required dependencies to brining in for linking) so we now pass $(COGL_PANGO_DEP_LIBS) when linking the crate demo. https://bugzilla.gnome.org/show_bug.cgi?id=656441
* android: don't list android/hello/res/values for distRobert Bragg2011-09-051-1/+0
| | | | | EXTRA_DIST should only include files so this removes the listing of the android/hello/res/values directory.
* android: Make sure to dist the hello exampleRobert Bragg2011-08-121-1/+11
| | | | | | This ensures that our releases include the example android application. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* android: Update the hello example to the latest glib-android API changeDamien Lespiau2011-08-121-1/+1
| | | | | | | | | | | When using glib-android, it's not possible to select parts of the library you want to initialize anymore. Plus it was decided that argc and argv are useless as you basically don't start applications with command line arguments on Android. https://bugzilla.gnome.org/show_bug.cgi?id=655791 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* android: Commit the build.xml fileDamien Lespiau2011-08-122-1/+84
| | | | | | | | | | | | This file is generated by: android update project -p . -t $i but it needs to have the name changed to the application name and thus needs to be checked in. https://bugzilla.gnome.org/show_bug.cgi?id=655792 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* build: only have libcogl-pango depend on pangoRobert Bragg2011-08-121-0/+1
| | | | | | | | Only cogl-pango needs a dependency on pangocairo so we are now careful to separate the pangocairo pkg-config flags from the others so we can avoid having libcogl builds refer to them. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* hello: Make sure to clear background explicitlyRobert Bragg2011-07-181-0/+3
| | | | | | | | This test wasn't actually explicitly clearing the background to black it was simply a fluke that some drivers clear the background when allocating a new framebuffer. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: Add x11-tfp exampleRobert Bragg2011-07-182-1/+237
| | | | | | This adds a minimal example that tests the cogl_texture_pixmap_x11 API. Reviewed-by: Neil Roberts <neil@linux.intel.com>