ngfx::DrawOp

Inherited by ngfx::DrawColorOp, ngfx::DrawMeshOp, ngfx::DrawTextureOp, ngfx::FilterOp

Public Functions

Name
DrawOp(GraphicsContext * ctx)
virtual ~DrawOp()
virtual void draw(CommandBuffer * commandBuffer, Graphics * graphics) =0

Protected Attributes

Name
GraphicsContext * ctx

Public Functions Documentation

function DrawOp

inline DrawOp(
    GraphicsContext * ctx
)

Parameters:

  • ctx The graphics context

Create the draw operation

function ~DrawOp

inline virtual ~DrawOp()

Destroy the draw op

function draw

virtual void draw(
    CommandBuffer * commandBuffer,
    Graphics * graphics
) =0

Parameters:

  • commandBuffer The command buffer
  • graphics The graphics object

Reimplemented by: ngfx::DrawMeshOp::draw, ngfx::DrawColorOp::draw, ngfx::DrawTextureOp::draw

Draw function. This function is called when the scene is redrawn. It records the draw calls to the command buffer.

Protected Attributes Documentation

variable ctx

GraphicsContext * ctx;

Updated on 3 April 2021 at 20:21:51 PDT