WIP: Add CLipRects to UI7 Layouts
- Added Scissor Support to Font Rendering
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -178,6 +178,7 @@ class PD_API Layout {
|
||||
UI7::ID ID;
|
||||
UI7::IO::Ref IO;
|
||||
Li::DrawList::Ref DrawList;
|
||||
UI7LayoutFlags Flags;
|
||||
|
||||
// Positioning
|
||||
fvec2 Pos;
|
||||
|
||||
Reference in New Issue
Block a user