WIP: Add CLipRects to UI7 Layouts

- Added Scissor Support to Font Rendering
This commit is contained in:
2026-01-28 07:11:56 +01:00
parent 090656b30c
commit 21b45f5855
10 changed files with 34 additions and 14 deletions

View File

@@ -44,6 +44,7 @@ enum LiTextFlags_ {
namespace PD {
class Context;
namespace Li {
class DrawList;
class PD_API Font {
public:
/** Codepoint Data holder */
@@ -93,7 +94,7 @@ class PD_API Font {
/**
* Extended Draw Text Function that vreates a Command List
*/
void CmdTextEx(CmdPool& cmds, const fvec2& pos, u32 color, float scale,
void CmdTextEx(DrawList& dl, const fvec2& pos, u32 color, float scale,
const std::string& text, LiTextFlags flags = 0,
const fvec2& box = 0);

View File

@@ -113,6 +113,11 @@ class PD_API Container {
/** Template function to update internal data (if needed) */
virtual void Update() {}
/** Internal function */
void PreDraw();
/** Internal function */
void PostDraw();
/** Internal Input Handler */
void HandleInternalInput();

View File

@@ -178,6 +178,7 @@ class PD_API Layout {
UI7::ID ID;
UI7::IO::Ref IO;
Li::DrawList::Ref DrawList;
UI7LayoutFlags Flags;
// Positioning
fvec2 Pos;