mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Removed COGLhandle and changed shader and program functions to be
wrapped in reference-counted CoglHandles instead. * clutter/cogl/gl/cogl-shader.c: * clutter/cogl/gl/cogl-shader.h: * clutter/cogl/gl/cogl-program.c: * clutter/cogl/gl/cogl-program.h: New files to hold the shader and program functions. * clutter/cogl/gl/cogl.c: Removed shader and program functions. * clutter/cogl/common/cogl-handle.h: New header to define COGL_HANDLE_DEFINE which helps build functions to create reference-counted handles. This reduces the amount of duplicated code. * clutter/cogl/gl/cogl-texture.c: * clutter/cogl/gles/cogl-texture.c: * clutter/cogl/gl/cogl-fbo.c: Converted to use COGL_HANDLE_DEFINE from cogl-handle.h to avoid duplicating some of the common code. * clutter/cogl/gles/cogl-defines.h.in: * clutter/cogl/gl/cogl-defines.h.in: Removed COGLhandle * clutter/cogl/gl/cogl-context.h: Added handle arrays for programs and shaders. * clutter/cogl/gl/cogl-context.c (cogl_create_context): Added initialisers for shader_handles and program_handles. (cogl_destroy_context): Added calls to g_array_free for all handle arrays. * clutter/cogl/gl/Makefile.am (libclutter_cogl_la_SOURCES): Added cogl-{program,shader}.{c,h} * clutter/cogl/common/Makefile.am (libclutter_cogl_common_la_SOURCES): Added cogl-handle.h * clutter/cogl/gles/cogl.c: * clutter/cogl/cogl.h.in: Programs and shaders are now wrapped in CoglHandles instead of COGLhandles. cogl_program_destroy and cogl_shader_destroy is now replaced with cogl_program_unref and cogl_shader_unref. cogl_program_ref and cogl_shader_ref are also added. * clutter/clutter-shader.c: Converted to use CoglHandles for the programs and shaders instead of COGLhandles. * cogl/cogl-sections.txt: Added cogl_shader_ref, cogl_shader_unref, cogl_is_shader, cogl_program_ref, cogl_program_unref, cogl_is_program and cogl_is_offscreen.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2008-04-29 Neil Roberts <neil@o-hand.com>
|
||||
|
||||
* cogl/cogl-sections.txt: Added cogl_shader_ref,
|
||||
cogl_shader_unref, cogl_is_shader, cogl_program_ref,
|
||||
cogl_program_unref, cogl_is_program and cogl_is_offscreen.
|
||||
|
||||
2008-04-29 Øyvind Kolås <pippin@o-hand.com>
|
||||
|
||||
* cogl/cogl-sections.txt: updated after cogl primitives api rename
|
||||
|
@ -109,14 +109,18 @@ cogl_texture_polygon
|
||||
<FILE>cogl-shaders</FILE>
|
||||
<TITLE>Shaders and Programmable Pipeline</TITLE>
|
||||
cogl_create_shader
|
||||
cogl_shader_destroy
|
||||
cogl_shader_ref
|
||||
cogl_shader_unref
|
||||
cogl_is_shader
|
||||
cogl_shader_source
|
||||
cogl_shader_compile
|
||||
cogl_shader_get_info_log
|
||||
cogl_shader_get_parameteriv
|
||||
<SUBSECTION>
|
||||
cogl_create_program
|
||||
cogl_program_destroy
|
||||
cogl_program_ref
|
||||
cogl_program_unref
|
||||
cogl_is_program
|
||||
cogl_program_attach_shader
|
||||
cogl_program_link
|
||||
cogl_program_use
|
||||
@ -131,6 +135,7 @@ cogl_offscreen_new_to_texture
|
||||
cogl_offscreen_new_multisample
|
||||
cogl_offscreen_ref
|
||||
cogl_offscreen_unref
|
||||
cogl_is_offscreen
|
||||
cogl_offscreen_blit
|
||||
cogl_offscreen_blit_region
|
||||
cogl_draw_buffer
|
||||
|
Reference in New Issue
Block a user