[Cogl] [PATCH] framebuffer: remove _draw_primitive() api

Robert Bragg robert at sixbynine.org
Thu Jul 11 12:15:56 PDT 2013


From: Robert Bragg <robert at linux.intel.com>

Since there is a replacement cogl_primitive_draw() api this removes the
cogl_framebuffer_draw_primitive() api.
---
 cogl/cogl-framebuffer.c |  9 ---------
 cogl/cogl-framebuffer.h | 23 -----------------------
 2 files changed, 32 deletions(-)

diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index cb8c66a..56e8469 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -2222,15 +2222,6 @@ cogl_framebuffer_vdraw_indexed_attributes (CoglFramebuffer *framebuffer,
 }
 
 void
-cogl_framebuffer_draw_primitive (CoglFramebuffer *framebuffer,
-                                 CoglPipeline *pipeline,
-                                 CoglPrimitive *primitive)
-{
-  _cogl_primitive_draw (primitive, framebuffer, pipeline,
-                        0 /* flags */);
-}
-
-void
 cogl_framebuffer_draw_rectangle (CoglFramebuffer *framebuffer,
                                  CoglPipeline *pipeline,
                                  float x_1,
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index 7b12999..273442d 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -1060,29 +1060,6 @@ cogl_framebuffer_clear4f (CoglFramebuffer *framebuffer,
                           float alpha);
 
 /**
- * cogl_framebuffer_draw_primitive:
- * @framebuffer: A destination #CoglFramebuffer
- * @pipeline: A #CoglPipeline state object
- * @primitive: A #CoglPrimitive geometry object
- *
- * Draws the given @primitive geometry to the specified destination
- * @framebuffer using the graphics processing state described by @pipeline.
- *
- * This drawing api doesn't support high-level meta texture types such
- * as #CoglTexture2DSliced so it is the user's responsibility to
- * ensure that only low-level textures that can be directly sampled by
- * a GPU such as #CoglTexture2D, #CoglTextureRectangle or #CoglTexture3D
- * are associated with layers of the given @pipeline.
- *
- * Stability: unstable
- * Since: 1.10
- */
-void
-cogl_framebuffer_draw_primitive (CoglFramebuffer *framebuffer,
-                                 CoglPipeline *pipeline,
-                                 CoglPrimitive *primitive);
-
-/**
  * cogl_framebuffer_vdraw_attributes:
  * @framebuffer: A destination #CoglFramebuffer
  * @pipeline: A #CoglPipeline state object
-- 
1.8.3.1



More information about the Cogl mailing list