Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
ImmediateDraw.cpp File Reference

Immediate mode 2D drawing implementation. More...

#include "./ImmediateDraw.hpp"
#include "../rhi/GfxDevice.hpp"
#include "../frame/RenderContext.hpp"
#include "../rhi/Shader.hpp"
#include "../rhi/ShaderEmbeds.generated.hpp"
#include "./BatchVertex.hpp"
#include "../../resource/ShaderParser.hpp"
#include "../../resource/ResourceManager.hpp"
#include "../../core/Log.hpp"
#include <glm/gtc/constants.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstring>
#include <string>
Include dependency graph for ImmediateDraw.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Detailed Description

Immediate mode 2D drawing implementation.

Generates BatchVertex geometry into a TransientBufferPool and draws it through a GfxDevice pipeline — the same path RenderFrame uses. Primitives are batched per texture and flushed in submission order.

Author
ESEngine Team
Date
2026

Definition in file ImmediateDraw.cpp.