Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
712 B · 27 lines
C
12345678910111213141516171819202122232425262728#pragma once
#include "Engine/Geometry.h"
class Texture;
namespace UI {
class Primitives {public: static void BeginFrame(); static void EndFrame(); static void SubmitRectangle(Rect bounds, Color color, Color borderColor, float borderWidth, float roundness); static void SubmitImage(Texture* texture, Rect bounds, Color color); static void SubmitText(Texture* texture, Rect bounds, Color color);
static void SetTranslation(Point translation); static Point GetTranslation(); static void SetClip(Rect clip); static void ClearClip(); static void PushClip(Rect clip); static void PopClip(); static void ApplyRenderState(); static void ClearResources();};
}