gtk2/gsk
Benjamin Otte 48e7f4191f gsktexture: Allow attaching render data to textures
This allows renderers (or anyone really) to attach "render data" to
textures. Only the first render data sticks.

You can gsk_texture_set_render_data() with the key you will use to
look the data up again, and if no data has been set yet, yours will be
set.

You can retrieve this data via gsk_texture_get_render_data() later on.
If your data has been cleared, NULL will be returned.

When gsk_texture_clear_render_data() is called (which the texture will
call when it is finalized), your destory notify will be called and you
have to release your render data.

The GL driver uses this to attach texture ids to GskTextures.
2016-11-16 17:36:33 +01:00
..
resources/glsl Use the projection to flip around the content 2016-10-18 11:49:10 +01:00
gsk.h gsk: Add GskTexture 2016-11-08 20:31:34 +01:00
gskcairorenderer.c gsk: Rework GskTexture 2016-11-16 17:36:33 +01:00
gskcairorendererprivate.h Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskdebug.c Some debug help 2016-10-18 11:49:12 +01:00
gskdebugprivate.h Some debug help 2016-10-18 11:49:12 +01:00
gskenums.h gsk: Bump up all version annotations 2016-10-18 11:49:16 +01:00
gskenumtypes.c.template Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskenumtypes.h.template Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskgldriver.c gsktexture: Allow attaching render data to textures 2016-11-16 17:36:33 +01:00
gskgldriverprivate.h gsktexture: Allow attaching render data to textures 2016-11-16 17:36:33 +01:00
gskglprofiler.c gsk: Bind GL context to the GL profiler 2016-10-18 11:49:10 +01:00
gskglprofilerprivate.h gsk: Bind GL context to the GL profiler 2016-10-18 11:49:10 +01:00
gskglrenderer.c gsktexture: Allow attaching render data to textures 2016-11-16 17:36:33 +01:00
gskglrendererprivate.h Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskprivate.c Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskprivate.h Initial implementation of GSK rendering pipeline 2016-10-18 11:29:34 +01:00
gskprofiler.c gsk: Add profiler object 2016-10-18 11:49:10 +01:00
gskprofilerprivate.h gsk: Add profiler object 2016-10-18 11:49:10 +01:00
gskrenderer.c gsk: Rework GskTexture 2016-11-16 17:36:33 +01:00
gskrenderer.h rendernode: Require passing a renderer to get_draw_context() 2016-11-01 16:32:26 +01:00
gskrendererprivate.h gsk: Rework GskTexture 2016-11-16 17:36:33 +01:00
gskrendernode.c gsk: Allow creating cairo contexts for 0x0 nodes 2016-11-15 17:49:19 +01:00
gskrendernode.h gsk: Add GskTexture 2016-11-08 20:31:34 +01:00
gskrendernodeiter.c gsk: Bump up all version annotations 2016-10-18 11:49:16 +01:00
gskrendernodeiter.h gsk: Bump up all version annotations 2016-10-18 11:49:16 +01:00
gskrendernodeprivate.h gsk: Add GskTexture 2016-11-08 20:31:34 +01:00
gskshaderbuilder.c Fix a few memory leaks 2016-10-21 06:45:22 +02:00
gskshaderbuilderprivate.h gsk: Consolidate program creation and storage 2016-10-18 11:49:07 +01:00
gsktexture.c gsktexture: Allow attaching render data to textures 2016-11-16 17:36:33 +01:00
gsktexture.h gsk: Rework GskTexture 2016-11-16 17:36:33 +01:00
gsktextureprivate.h gsktexture: Allow attaching render data to textures 2016-11-16 17:36:33 +01:00
gsktypes.h gsk: Add GskTexture 2016-11-08 20:31:34 +01:00
Makefile.am gsk: Add GskTexture 2016-11-08 20:31:34 +01:00