Cogl.Framebuffer.prototype.draw_primitive

function draw_primitive(pipeline: Cogl.Pipeline, primitive: Cogl.Primitive): void {
    // Gjs wrapper for cogl_framebuffer_draw_primitive()
}
  

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 Cogl.Texture2DSliced so it is the user's responsibility to ensure that only low-level textures that can be directly sampled by a GPU such as Cogl.Texture2D, Cogl.TextureRectangle or Cogl.Texture3D are associated with layers of the given pipeline.

<note>This api doesn't support any of the legacy global state options such as cogl_set_depth_test_enabled(), cogl_set_backface_culling_enabled() or cogl_program_use()</note>

Since 1.10

pipeline

A Cogl.Pipeline state object

primitive

A Cogl.Primitive geometry object