Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
Graphics::OGL::CommandList Class Reference

#include <CommandBufferGL.h>

Classes

struct  DrawCmd
 
struct  DynamicDrawCmd
 
struct  RenderPassCmd
 

Public Member Functions

void AddDrawCmd (Graphics::MeshObject *mesh, Graphics::Material *mat, Graphics::InstanceBuffer *inst=nullptr)
 
void AddDynamicDrawCmd (BufferBinding< Graphics::VertexBuffer > vtx, BufferBinding< Graphics::IndexBuffer > idx, Graphics::Material *mat)
 
void AddRenderPassCmd (RenderTarget *renderTarget, ViewportExtents extents)
 
void AddScissorCmd (ViewportExtents extents)
 
void AddClearCmd (bool clearColors, bool clearDepth, Color color)
 

Protected Types

using Cmd = std::variant< DrawCmd, DynamicDrawCmd, RenderPassCmd >
 

Protected Member Functions

const std::vector< Cmd > & GetDrawCmds () const
 
bool IsEmpty () const
 
void Reset ()
 

Friends

class Graphics::RendererOGL
 

Member Typedef Documentation

◆ Cmd

Member Function Documentation

◆ AddClearCmd()

void CommandList::AddClearCmd ( bool  clearColors,
bool  clearDepth,
Color  color 
)
Here is the call graph for this function:

◆ AddDrawCmd()

void CommandList::AddDrawCmd ( Graphics::MeshObject mesh,
Graphics::Material mat,
Graphics::InstanceBuffer inst = nullptr 
)
Here is the call graph for this function:

◆ AddDynamicDrawCmd()

void CommandList::AddDynamicDrawCmd ( BufferBinding< Graphics::VertexBuffer vtx,
BufferBinding< Graphics::IndexBuffer idx,
Graphics::Material mat 
)
Here is the call graph for this function:

◆ AddRenderPassCmd()

void CommandList::AddRenderPassCmd ( RenderTarget renderTarget,
ViewportExtents  extents 
)
Here is the call graph for this function:

◆ AddScissorCmd()

void CommandList::AddScissorCmd ( ViewportExtents  extents)
Here is the call graph for this function:

◆ GetDrawCmds()

const std::vector< Cmd > & Graphics::OGL::CommandList::GetDrawCmds ( ) const
inlineprotected

◆ IsEmpty()

bool Graphics::OGL::CommandList::IsEmpty ( ) const
inlineprotected

◆ Reset()

void CommandList::Reset ( )
protected

Friends And Related Symbol Documentation

◆ Graphics::RendererOGL

friend class Graphics::RendererOGL
friend

The documentation for this class was generated from the following files: