mutter/doc
Neil Roberts dfea57b45a Add a Cogl texture 3D backend
This adds a publicly exposed experimental API for a 3D texture
backend. There is a feature flag which can be checked for whether 3D
textures are supported. Although we require OpenGL 1.2 which has 3D
textures in core, GLES only provides them through an extension so the
feature can be used to detect that.

The textures can be created with one of two new API functions :-

cogl_texture_3d_new_with_size

 and

cogl_texture_3d_new_from_data

There is also internally a new_from_bitmap function. new_from_data is
implemented in terms of this function.

The two constructors are effectively the only way to upload data to a
3D texture. It does not work to call glTexImage2D with the
GL_TEXTURE_3D target so the virtual for cogl_texture_set_region does
nothing. It would be possible to make cogl_texture_get_data do
something sensible like returning all of the images as a single long
image but this is not currently implemented and instead the virtual
just always fails. We may want to add API specific to the 3D texture
backend to get and set a sub region of the texture.

All of those three functions can throw a GError. This will happen if
the GPU does not support 3D textures or it does not support NPOTs and
an NPOT size is requested. It will also fail if the FBO extension is
not supported and the COGL_TEXTURE_NO_AUTO_MIPMAP flag is not
given. This could be avoided by copying the code for the
GL_GENERATE_MIPMAP TexParameter fallback, but in the interests of
keeping the code simple this is not yet done.

This adds a couple of functions to cogl-texture-driver for uploading
3D data and querying the 3D proxy
texture. prep_gl_for_pixels_upload_full now also takes sets the
GL_UNPACK_IMAGE_HEIGHT parameter so that 3D textures can have padding
between the images. Whenever 3D texture is uploading, both the height
of the images and the height of all of the data is specified (either
explicitly or implicilty from the CoglBitmap) so that the image height
can be deduced by dividing by the depth.
2010-07-13 14:28:52 +01:00
..
common cookbook: Additional selectors in CSS stylesheet 2010-07-06 17:20:02 +01:00
cookbook Merge remote branch 'elliot/cookbook-animation-inversion' 2010-07-12 21:25:25 +01:00
manual build: Distcheck fixes 2010-06-30 12:26:10 +01:00
reference Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
clutter-actor-invariants.txt clutter-texture: Remove confusing comments about realization 2010-04-19 15:34:43 +01:00
CODING_STYLE docs: Move documentation under doc/ 2009-12-01 10:16:25 +00:00
HACKING docs: Clarify usage of UTF-8 or ASCII art in commit messages 2010-01-15 17:32:46 +00:00
HACKING.backends docs: Update the HACKING.backends file 2010-03-04 18:07:04 +00:00
Makefile.am docs: Disable manual 2010-06-30 11:56:13 +01:00
RELEASING docs: Move RELEASING under docs/ 2009-12-09 18:10:52 +00:00