Usable Engine

This commit is contained in:
Isuru Samarathunga
2025-10-07 17:11:20 +05:30
parent 0ef29f4e5f
commit 57c4309cf2
68 changed files with 1007 additions and 127 deletions

View File

@ -24,6 +24,9 @@ namespace ia::iae
class Renderer
{
public:
STATIC CONSTEXPR FLOAT32 MIN_DEPTH = -2097152.0f;
STATIC CONSTEXPR FLOAT32 MAX_DEPTH = 2097152.0f;
struct Geometry
{
INT32 IndexCount{};
@ -41,16 +44,16 @@ namespace ia::iae
Vec2 TextureOffset{0.0f, 0.0f};
SDL_Rect Scissor{0, 0, 0, 0};
SDL_GPUTexture* ActiveTexture{nullptr};
SDL_GPUViewport ActiveViewport{};
Mat4 ModelMatrix{1.0f};
Mat4 ProjectionMatrix{1.0f};
SDL_GPURenderPass* ActiveRenderPass{};
SDL_GPUCommandBuffer* ActiveCommandBuffer{};
SDL_GPUColorTargetInfo ColorTargetInfo{};
SDL_GPUDepthStencilTargetInfo DepthStencilTargetInfo{};
class ICameraComponent *ActiveCamera{};
class CameraComponent *ActiveCamera{};
};
public: