30 ImGui::Begin(
"Debug");
34 ImGui::Text(
"Application average %.3f ms/frame (%.1f FPS)",
35 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
43 Application* app = Application::GetInstance(1920, 1080,
"Rendering2D");
46 Maths::Vec3 pos = Maths::Vec3(0, 0, 0);
50 app->SetCamera(camera);
58 return Vivid::main(0,
nullptr);
A class that represents the camera.
void Setup() override
Setup function.
void ImGuiRender() override
ImGuiRender function.
void Draw() override
Draw function.
A class for the OrthoCamera's.
RenderingInterface class.
static void BeginScene()
Begins the scene.
static void Init(int reserveVertices=10000)
Initializes the Renderer2D.
static void EndScene()
Ends the scene.
static void DrawLine(Maths::Vec2 start, Maths::Vec2 end, float thickness, Maths::Vec3 color)
Draws a line.
static void DrawQuad(float x, float y, float width, float height, const Maths::Vec3 &color)
Draws a quad.
static void DrawCircle(Maths::Vec2 center, float radius, Maths::Vec3 color)
Draws a circle.