Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CGraphic2DRenderer Class Reference

This is a Render System object class that supports 2D drawing. More...

#include <Graphics2D/CGraphic2DRenderer.h>

Inheritance diagram for Skylicht::CGraphic2DRenderer:
Skylicht::IRenderSystem Skylicht::IEntitySystem Skylicht::CTextBillboardRenderer

Public Member Functions

 CGraphic2DRenderer ()
 Constructor.
virtual ~CGraphic2DRenderer ()
 Destructor.
void beginRender2D (float width, float height)
 Begin 2D rendering by setting an orthogonal projection matrix. Saves the previous projection and view matrices.
void endRender2D ()
 End 2D rendering and restore the previous projection and view matrices.
Public Member Functions inherited from Skylicht::IRenderSystem
virtual bool isRenderSystem ()
IRenderPipeline::ERenderPipelineType getPipelineType ()
virtual void render (CEntityManager *entityManager)=0
virtual void renderTransparent (CEntityManager *entityManager)
virtual void renderEmission (CEntityManager *entityManager)
virtual void postRender (CEntityManager *entityManager)
ERenderPass getRenderPass ()
int getSortingPriority ()
void setSortingPriority (int s)
Public Member Functions inherited from Skylicht::IEntitySystem
virtual void beginQuery (CEntityManager *entityManager)=0
virtual void onQuery (CEntityManager *entityManager, CEntity **entities, int count)=0
virtual void init (CEntityManager *entityManager)=0
virtual void update (CEntityManager *entityManager)=0
void setSystemOrder (int order)
int getSystemOrder ()

Additional Inherited Members

Public Types inherited from Skylicht::IRenderSystem
enum  ERenderPass {
  Sky = 0 , Opaque , OcclusionQuery , Transparent ,
  Effect
}
Protected Attributes inherited from Skylicht::IRenderSystem
IRenderPipeline::ERenderPipelineType m_pipelineType
ERenderPass m_renderPass
int m_sortingPriority
Protected Attributes inherited from Skylicht::IEntitySystem
int m_systemOrder

Detailed Description

This is a Render System object class that supports 2D drawing.

CGraphic2DRenderer is used to draw 2D graphics by setting up an orthogonal projection. It saves and restores the projection and view matrices so that 2D rendering does not interfere with 3D rendering.

You can find more information in the CTextBilboardRenderer class, which inherits from it.

Member Function Documentation

◆ beginRender2D()

void Skylicht::CGraphic2DRenderer::beginRender2D ( float width,
float height )

Begin 2D rendering by setting an orthogonal projection matrix. Saves the previous projection and view matrices.

Parameters
widthThe width of the 2D rendering area.
heightThe height of the 2D rendering area.

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