Cogl.Primitive.prototype.draw
function draw(framebuffer: Cogl.Framebuffer, pipeline: Cogl.Pipeline): void { // Gjs wrapper for cogl_primitive_draw() }
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.
Since 1.16
- framebuffer
A destination Cogl.Framebuffer
- pipeline
A Cogl.Pipeline state object