NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::RenderCommand Class Reference

#include <RenderCommand.h>

Static Public Member Functions

static void Init ()
static void SetViewport (std::uint32_t x, std::uint32_t y, std::uint32_t width, std::uint32_t height)
static void SetClearColor (float r, float g, float b, float a)
static void Clear ()
static void DrawIndexed (const VertexArray &vertexArray)
static void DrawIndexedRange (const VertexArray &vertexArray, std::uint32_t indexCount, std::uint32_t indexOffset)
static void DrawLines (const VertexArray &vertexArray, std::uint32_t vertexCount)

Detailed Description

Definition at line 15 of file RenderCommand.h.

Member Function Documentation

◆ Clear()

void NoJob::RenderCommand::Clear ( )
static

Definition at line 43 of file RenderCommand.cpp.

Referenced by NoJob::Renderer::BeginFrame(), and main().

◆ DrawIndexed()

void NoJob::RenderCommand::DrawIndexed ( const VertexArray & vertexArray)
static

Definition at line 48 of file RenderCommand.cpp.

Referenced by NoJob::Renderer::Submit().

◆ DrawIndexedRange()

void NoJob::RenderCommand::DrawIndexedRange ( const VertexArray & vertexArray,
std::uint32_t indexCount,
std::uint32_t indexOffset )
static

Definition at line 52 of file RenderCommand.cpp.

Referenced by NoJob::Renderer::SubmitRange().

◆ DrawLines()

void NoJob::RenderCommand::DrawLines ( const VertexArray & vertexArray,
std::uint32_t vertexCount )
static

Definition at line 60 of file RenderCommand.cpp.

Referenced by NoJob::NavMeshDebugRenderer::Draw().

◆ Init()

void NoJob::RenderCommand::Init ( )
static

Definition at line 11 of file RenderCommand.cpp.

References NoJob::RendererAPI::GetAPI(), NoJob::OpenGL, and NoJob::Vulkan.

Referenced by NoJob::Renderer::Init().

◆ SetClearColor()

void NoJob::RenderCommand::SetClearColor ( float r,
float g,
float b,
float a )
static

Definition at line 38 of file RenderCommand.cpp.

Referenced by NoJob::Renderer::BeginFrame(), and main().

◆ SetViewport()

void NoJob::RenderCommand::SetViewport ( std::uint32_t x,
std::uint32_t y,
std::uint32_t width,
std::uint32_t height )
static

Definition at line 29 of file RenderCommand.cpp.

Referenced by NoJob::Renderer::BeginFrame(), and main().


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