LkEngine 0.1.2
 
Loading...
Searching...
No Matches
LkEngine::LRenderer2D Class Reference
Inheritance diagram for LkEngine::LRenderer2D:
LkEngine::LObject LkEngine::LObjectBase

Classes

struct  FRendererStatistics
 

Public Member Functions

 LRenderer2D (const FRenderer2DSpecification InSpecification)
 
void Initialize ()
 Initialize object.
 
void Shutdown ()
 
void BeginScene (const LSceneCamera &Camera)
 
void BeginScene (const LSceneCamera &Camera, const glm::mat4 &Transform)
 
void EndScene ()
 
void SetTargetFramebuffer (TObjectPtr< LFramebuffer > InFramebuffer)
 
void DrawImage (const TObjectPtr< LImage > Image)
 
void DrawLine (const glm::vec2 &P0, const glm::vec2 &P1, const glm::vec4 &Color)
 
void DrawQuad (const glm::mat4 &Transform, const glm::vec4 &Color)
 
void DrawQuad (const glm::vec2 &Position, const glm::vec2 &Size, const glm::vec4 &Color)
 
void DrawQuad (const glm::vec3 &Position, const glm::vec2 &Size, const glm::vec4 &Color)
 
void DrawQuad (const glm::vec2 &Position, const glm::vec2 &Size, TObjectPtr< LTexture > Texture)
 
void DrawQuad (const glm::vec2 &Position, const glm::vec2 &Size, TObjectPtr< LTexture > Texture, const glm::vec4 &TintColor)
 
void DrawQuad (const glm::vec3 &Position, const glm::vec2 &Size, TObjectPtr< LTexture > Texture, const glm::vec4 &TintColor)
 
float GetLineWidth ()
 
void SetLineWidth (const float NewLineWidth)
 
FORCEINLINE FQuadVertex *& GetWriteableQuadBuffer ()
 
FORCEINLINE FLineVertex *& GetWriteableLineBuffer ()
 
- Public Member Functions inherited from LkEngine::LObject
 LObject (const LObject &Other)
 
virtual void Destroy ()
 Destroy object, releasing all resources.
 
virtual FORCEINLINE bool IsInitialized () const
 Check if object is initialized.
 
FORCEINLINE FObjectHandle GetObjectHandle () const
 Get the object handle.
 
virtual FORCEINLINE bool IsObjectValid () const
 Check if object is valid for use.
 
virtual const LClassObjectRegistration ()=0
 Register object class.
 
virtual FORCEINLINE const LClassGetClass () const
 Get the class for this LObject.
 
virtual std::string ClassName () const =0
 Get name of the LObject class.
 
LObjectoperator= (const LObject &Other)
 
void MarkAsGarbage ()
 Mark object as garbage.
 
template<typename T >
T & As ()
 Cast object to type T.
 
template<typename T >
const T & As () const
 Cast object to type T.
 
template<typename T >
bool IsA () const
 Check if the object is or is a derivation of type T.
 
virtual FORCEINLINE bool IsAsset () const
 Check if object is an asset.
 
FORCEINLINE uint32_t GetReferenceCount () const
 Return current reference count from all object pointers.
 
- Public Member Functions inherited from LkEngine::LObjectBase
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType OtherObject) const
 Check if the object is the same type as the passed object's.
 

Static Public Attributes

static constexpr glm::vec2 TextureCoords []
 
static constexpr int MaxTextureSlots = 32
 
static constexpr int MaxArrayTextures = 10
 

Additional Inherited Members

- Static Public Member Functions inherited from LkEngine::LObject
static FORCEINLINE const LClassStaticClass ()
 Get static class object.
 
static FORCEINLINE std::string StaticClassName ()
 Static class name.
 
template<typename T >
static void ValidateLObjectImplementation ()
 Validate the implementation of a LObject.
 
- Static Public Member Functions inherited from LkEngine::LObjectBase
template<typename ClassType >
static FORCEINLINE bool IsChildOf (const ClassType *InObjectClass, const ClassType *InOtherClass)
 Check if the object is a child of another class.
 
- Protected Member Functions inherited from LkEngine::LObjectBase
void SetClass (LClass *InClass)
 Set the class.
 
FORCEINLINE const LClassGetClass () const
 Get the private class member.
 
FORCEINLINE bool IsClassValid () const
 Check if LObjectBase has a valid LClass object.
 
- Protected Attributes inherited from LkEngine::LObject
FObjectHandle ObjectHandle = 0
 
bool bObjectInitialized = false
 
EObjectFlag ObjectFlags = EObjectFlag::None
 
std::atomic< uint32_t > Ptr_ReferenceCount = 0
 

Member Function Documentation

◆ Initialize()

void LkEngine::LRenderer2D::Initialize ( )
virtual

Initialize object.

TODO: FIX THIS

Reimplemented from LkEngine::LObject.

Member Data Documentation

◆ TextureCoords

glm::vec2 LkEngine::LRenderer2D::TextureCoords[]
inlinestaticconstexpr
Initial value:
= {
{ 0.0f, 0.0f },
{ 0.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 0.0f }
}

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