Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::Renderer2D Class Reference

#include <Renderer2D.h>

Static Public Member Functions

static void Init (u32 width, u32 height, Ref< Image2D > targetImage, Ref< Image2D > depthImage, Ref< UniformBuffer > cameraUBO)
static void Shutdown ()
static void BeginScene ()
static void EndScene ()
static void DrawQuad (const Crux::vec3 &position, const Crux::vec2 &size, const Crux::vec4 &color)
static void DrawQuad (const Crux::mat4 &transform, const Crux::vec4 &color)
static void DrawLine (const Crux::vec3 &a, const Crux::vec3 &b, const Crux::vec4 &color)
static void DrawRect (const Crux::mat4 &transform, const Crux::vec4 &color)
static Ref< Image2DGetOutputImage ()

Member Function Documentation

◆ BeginScene()

void Raven::Renderer2D::BeginScene ( )
static

◆ DrawLine()

void Raven::Renderer2D::DrawLine ( const Crux::vec3 & a,
const Crux::vec3 & b,
const Crux::vec4 & color )
static

◆ DrawQuad() [1/2]

void Raven::Renderer2D::DrawQuad ( const Crux::mat4 & transform,
const Crux::vec4 & color )
static

◆ DrawQuad() [2/2]

void Raven::Renderer2D::DrawQuad ( const Crux::vec3 & position,
const Crux::vec2 & size,
const Crux::vec4 & color )
static

◆ DrawRect()

void Raven::Renderer2D::DrawRect ( const Crux::mat4 & transform,
const Crux::vec4 & color )
static

◆ EndScene()

void Raven::Renderer2D::EndScene ( )
static

◆ GetOutputImage()

Ref< Image2D > Raven::Renderer2D::GetOutputImage ( )
static

◆ Init()

void Raven::Renderer2D::Init ( u32 width,
u32 height,
Ref< Image2D > targetImage,
Ref< Image2D > depthImage,
Ref< UniformBuffer > cameraUBO )
static

◆ Shutdown()

void Raven::Renderer2D::Shutdown ( )
static

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