mutter/cogl
Neil Roberts 8012eee31f Add _cogl_texture_get_type()
This adds an internal function to get the type of the underlying
hardware texture for any CoglTexture. It can return one of three
values to represent 2D textures, 3D textures or rectangle textures.
The idea is that this can be used as a replacement for
cogl_texture_get_gl_texture when only the target is required to make
it a bit less GL-centric. The implementation adds a new virtual
function which all of the texture backends now implement.

The enum is in a public header because a later patch will want to use
it from the CoglPipeline API. We may want to consider making the
function public too later.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-02-13 17:02:46 +00:00
..
driver Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
gl-prototypes cogl-in-gles-core-functions.h: Remove stray ';' 2012-02-13 12:22:18 +00:00
tesselator
winsys Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl2-clip-state.c framebuffer: Add CoglFramebuffer clip stack methods 2011-12-06 18:51:56 +00:00
cogl2-clip-state.h docs: make cogl2-clip-state.h docs consistent 2011-12-06 18:51:56 +00:00
cogl2-experimental.h 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl2-path.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl2-path.h
cogl-1.0.pc.in
cogl-2.0-experimental.pc.in 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl-atlas-texture-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-atlas-texture.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-atlas.c
cogl-atlas.h
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-attribute-buffer.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-attribute-private.h framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-attribute.c framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-attribute.h framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-bitmap-fallback.c cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-bitmap-pixbuf.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap-private.h Export API for uploading a tex subregion from a CoglBuffer 2011-07-25 22:45:24 +01:00
cogl-bitmap.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap.h Start removing _EXP defines and improves some docs 2012-01-05 21:00:17 +00:00
cogl-bitmask.c cogl-bitmask: Add _cogl_bitmask_popcount 2011-11-16 16:32:11 +00:00
cogl-bitmask.h cogl-bitmask.h: Eliminate compiler warning 2011-12-07 12:08:15 +00:00
cogl-blend-string.c blend-strings: Make braces around blend factor optional 2011-09-05 17:54:46 +01:00
cogl-blend-string.h
cogl-blit.c When internally using an FBO, check for allocation errors 2012-02-07 15:13:11 +00:00
cogl-blit.h
cogl-boxed-value.c cogl-boxed-value: Add _cogl_boxed_value_copy 2011-11-16 16:32:11 +00:00
cogl-boxed-value.h cogl-boxed-value: Add _cogl_boxed_value_copy 2011-11-16 16:32:11 +00:00
cogl-buffer-private.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-buffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-buffer.h Start removing _EXP defines and improves some docs 2012-01-05 21:00:17 +00:00
cogl-clip-stack.c framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-clip-stack.h remove redundant _cogl_clip_stack_dirty() api 2011-12-06 18:51:57 +00:00
cogl-clip-state-private.h clip-state: remove redundant _cogl_clip_state_flush() api 2011-12-06 18:51:57 +00:00
cogl-clip-state.c clip-state: remove redundant _cogl_clip_state_flush() api 2011-12-06 18:51:57 +00:00
cogl-clip-state.h
cogl-clutter-xlib.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-clutter.c Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-clutter.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-color-private.h
cogl-color.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-color.h cogl-color: add cogl_color_init_from_xyz funcs 2010-06-15 15:26:27 +01:00
cogl-config-private.h cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-config.c cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-context-private.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-context.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-context.h Start removing _EXP defines and improves some docs 2012-01-05 21:00:17 +00:00
cogl-debug-options.h Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-debug.c debug: Adds COGL_DEBUG=winsys option 2012-02-09 13:10:14 +00:00
cogl-debug.h cogl-debug: Mark _cogl_debug_flags with dllexport for MSVC 2011-11-25 13:14:10 +00:00
cogl-defines.h.in
cogl-defines.h.win32 Win32: Update predefined cogl-defines.h's 2012-02-13 12:22:17 +00:00
cogl-defines.h.win32_SDL Win32: Update predefined cogl-defines.h's 2012-02-13 12:22:17 +00:00
cogl-deprecated.h
cogl-depth-state-private.h
cogl-depth-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-depth-state.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-display-private.h egl-gdl: struct gdl_plane never was a valid type 2011-07-29 11:50:15 +01:00
cogl-display.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-display.h display: Remove _EXP symbol mangling and add gtk-doc 2012-02-09 13:09:15 +00:00
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-euler.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-euler.h
cogl-feature-private.c gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-feature-private.h Don't use the 'NULL' GModule to resolve GL symbols 2011-07-27 16:10:02 +01:00
cogl-fixed.c build: Fix building clutter on armv4t devices 2012-01-05 20:13:41 +00:00
cogl-fixed.h
cogl-flags.h cogl-flags: Fix iterating flag when the most-significant bit is set 2011-11-22 16:07:21 +00:00
cogl-framebuffer-private.h framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-framebuffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-framebuffer.h framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-glib-source.c Add a utility to make a GSource out of a CoglContext 2012-01-05 13:40:59 +00:00
cogl-glib-source.h Add a utility to make a GSource out of a CoglContext 2012-01-05 13:40:59 +00:00
cogl-glx-display-private.h glx: Only call swap_buffer callbacks @ dispatch time 2012-02-08 18:58:06 +00:00
cogl-glx-renderer-private.h cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-gtype-private.h
cogl-handle.h
cogl-index-buffer-private.h
cogl-index-buffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-index-buffer.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-indices-private.h
cogl-indices.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-indices.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-internal.h cogl-program: Move the code for CoglBoxedValue to its own file 2011-11-16 16:32:10 +00:00
cogl-journal-private.h framebuffer: Flush the journal on destruction 2012-01-27 17:23:03 +00:00
cogl-journal.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-kms-renderer.h kms: Adds api to get at the kms file descriptor 2012-02-08 17:00:25 +00:00
cogl-material-compat.c
cogl-material-compat.h
cogl-matrix-private.h
cogl-matrix-stack.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-matrix-stack.h Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-matrix.c Remove CoglVector3 type and use float * instead 2012-01-16 18:27:19 +00:00
cogl-matrix.h matrix: Remove _EXP symbol mangling and add gtk-doc 2012-01-16 18:27:20 +00:00
cogl-meta-texture.c meta-texture: Support CLAMP_TO_EDGE 2011-11-01 12:03:03 +00:00
cogl-meta-texture.h meta-texture: Support CLAMP_TO_EDGE 2011-11-01 12:03:03 +00:00
cogl-node-private.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-node.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-object-private.h object: Add a virtual pointer for the unref function 2012-01-27 17:22:57 +00:00
cogl-object.c object: Add a virtual pointer for the unref function 2012-01-27 17:22:57 +00:00
cogl-object.h
cogl-offscreen.h Add a strong CoglTexture type to replace CoglHandle 2011-09-21 15:27:03 +01:00
cogl-onscreen-private.h Move the add_swap_buffers_callback functions out of the winsys 2012-02-08 17:00:25 +00:00
cogl-onscreen-template-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-onscreen-template.c template: Allow configuration of swap throttle 2012-01-16 18:27:20 +00:00
cogl-onscreen-template.h template: Allow configuration of swap throttle 2012-01-16 18:27:20 +00:00
cogl-onscreen.c Move the add_swap_buffers_callback functions out of the winsys 2012-02-08 17:00:25 +00:00
cogl-onscreen.h wayland: perform buffer resizes lazily at swap buffers 2012-01-16 18:27:20 +00:00
cogl-pango.h
cogl-path-private.h clip-stack: Move path flushing code to cogl-clip-stack.c 2011-11-01 12:02:59 +00:00
cogl-path.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-path.h docs: Fixes for the Cogl API reference 2010-12-22 09:52:35 +00:00
cogl-pipeline-cache.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-cache.h
cogl-pipeline-debug.c pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pipeline-fragend-arbfp-private.h
cogl-pipeline-fragend-arbfp.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-fragend-fixed-private.h
cogl-pipeline-fragend-fixed.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-fragend-glsl-private.h
cogl-pipeline-fragend-glsl.c snippet: Add a hook for the layer fragment processing 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-state-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-state.c Make _cogl_pipeline_get_layer_texture public 2012-02-07 15:25:35 +00:00
cogl-pipeline-layer-state.h Make _cogl_pipeline_get_layer_texture public 2012-02-07 15:25:35 +00:00
cogl-pipeline-layer.c snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-opengl-private.h
cogl-pipeline-opengl.c rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl-pipeline-private.h Make _cogl_pipeline_get_layer_texture public 2012-02-07 15:25:35 +00:00
cogl-pipeline-progend-fixed-private.h Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-progend-fixed.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-progend-glsl-private.h rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl-pipeline-progend-glsl.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-snippet-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-snippet.c snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-state-private.h pipeline: Assume blend enabled when there are snippets 2011-12-06 19:02:06 +00:00
cogl-pipeline-state.c pipeline: fix realloc of uniform overrides array 2012-01-04 19:27:20 +00:00
cogl-pipeline-state.h renderer: Remove _EXP symbol mangling and add gtk-doc 2012-01-16 18:27:20 +00:00
cogl-pipeline-vertend-fixed-private.h
cogl-pipeline-vertend-fixed.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-vertend-glsl-private.h
cogl-pipeline-vertend-glsl.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline.h renderer: Remove _EXP symbol mangling and add gtk-doc 2012-01-16 18:27:20 +00:00
cogl-pixel-buffer-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-pixel-buffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-pixel-buffer.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-poll.c Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl-poll.h cogl-poll: Add a missing G_END_DECLS to the header 2012-01-24 14:04:26 +00:00
cogl-primitive-private.h primitive: Adds _cogl_primitive_draw api taking flags 2011-11-01 12:02:59 +00:00
cogl-primitive.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-primitive.h buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-primitives-private.h framebuffer: Add cogl_framebuffer draw methods 2012-02-09 13:09:15 +00:00
cogl-primitives.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-primitives.h
cogl-private.h Add internal _cogl_push_source to optionally disable legacy state 2011-09-19 16:40:06 +01:00
cogl-profile.c profile: use atexit not g_atexit 2012-01-16 23:27:36 +00:00
cogl-profile.h
cogl-program-private.h
cogl-program.c cogl-program: Move the code for CoglBoxedValue to its own file 2011-11-16 16:32:10 +00:00
cogl-quaternion-private.h math: Adds an experimental quaternion API 2011-05-16 14:11:47 +01:00
cogl-quaternion.c Remove CoglVector3 type and use float * instead 2012-01-16 18:27:19 +00:00
cogl-quaternion.h Remove CoglVector3 type and use float * instead 2012-01-16 18:27:19 +00:00
cogl-queue.h
cogl-rectangle-map.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-rectangle-map.h
cogl-renderer-private.h renderer: Adds api to add/remove selection constraints 2012-01-16 18:27:19 +00:00
cogl-renderer.c renderer: fix s/contraint/constraint/ typo 2012-02-08 17:00:25 +00:00
cogl-renderer.h renderer: fix s/contraint/constraint/ typo 2012-02-08 17:00:25 +00:00
cogl-shader-boilerplate.h
cogl-shader-private.h
cogl-shader.c Use the same number for n_tex_coord_attribs in all linked shaders 2011-11-02 13:50:28 +00:00
cogl-shader.h snippet: Add some more documentation 2011-12-07 14:52:48 +00:00
cogl-snippet-private.h snippet: Move the hook to be a property of the snippet 2011-12-06 19:02:06 +00:00
cogl-snippet.c snippet: Move the hook to be a property of the snippet 2011-12-06 19:02:06 +00:00
cogl-snippet.h snippets: Remove _EXP symbol mangling and add gtk-doc 2012-01-16 18:27:20 +00:00
cogl-spans.c spans: avoid normalize with normalize_factor of 1 2011-11-01 12:03:03 +00:00
cogl-spans.h Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-sub-texture-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-sub-texture.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-sub-texture.h sub-texture: Exposes a getter for parent texture 2012-01-05 20:57:52 +00:00
cogl-swap-chain-private.h
cogl-swap-chain.c
cogl-swap-chain.h
cogl-texture-2d-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-texture-2d-sliced-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-texture-2d-sliced.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture-2d-sliced.h Start removing _EXP defines and improves some docs 2012-01-05 21:00:17 +00:00
cogl-texture-2d.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture-2d.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-texture-3d-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-texture-3d.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture-3d.h
cogl-texture-driver.h
cogl-texture-private.h Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture-rectangle-private.h object: Remove the type member of CoglObjectClass 2012-01-27 17:18:32 +00:00
cogl-texture-rectangle.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture-rectangle.h texture: Make CoglTextureRectangle experimentally public 2011-11-01 12:03:02 +00:00
cogl-texture.c Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-texture.h Add _cogl_texture_get_type() 2012-02-13 17:02:46 +00:00
cogl-types.h pipeline: Make the backface culling experimental public 2011-11-14 18:40:27 +00:00
cogl-util.c Move POPCOUNTL to cogl-util 2011-11-16 16:32:11 +00:00
cogl-util.h cogl-debug: Mark _cogl_debug_flags with dllexport for MSVC 2011-11-25 13:14:10 +00:00
cogl-vector.c Remove CoglVector3 type and use float * instead 2012-01-16 18:27:19 +00:00
cogl-vector.h Remove CoglVector3 type and use float * instead 2012-01-16 18:27:19 +00:00
cogl-vertex-buffer-private.h
cogl-vertex-buffer.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
cogl-vertex-buffer.h docs: clarify cogl_vertex_buffer_adds docs 2011-02-09 19:12:12 +00:00
cogl-wayland-renderer.h wayland: Add api to set a foreign shell 2011-12-07 15:53:05 +00:00
cogl-win32-renderer.c
cogl-win32-renderer.h
cogl-x11-renderer-private.h
cogl-xlib-private.h
cogl-xlib-renderer-private.h xlib: Internally retrieve XEvents 2012-01-05 13:40:24 +00:00
cogl-xlib-renderer.c xlib: Internally retrieve XEvents 2012-01-05 13:40:24 +00:00
cogl-xlib-renderer.h xlib: Internally retrieve XEvents 2012-01-05 13:40:24 +00:00
cogl-xlib.c cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-xlib.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl.c rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl.h kms: Adds api to get at the kms file descriptor 2012-02-08 17:00:25 +00:00
cogl.rc.in Add Windows Resource Files templates 2011-12-15 20:31:30 +08:00
cogl.symbols Update cogl.symbols 2012-02-13 12:22:18 +00:00
Makefile.am cogl/Makefile.am: Filter out SDL winsys for Visual C++ builds 2012-02-13 12:22:19 +00:00
stb_image.c stb_image: use glib sized types 2011-08-12 15:28:42 +01:00