mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-27 05:29:53 +03:00
Use the raylib allocator for fonts.
This commit is contained in:
parent
c729c6e0f5
commit
111834f768
3 changed files with 12 additions and 15 deletions
|
@ -1,4 +1,6 @@
|
|||
/// This example shows how to place UI items relative to each other.
|
||||
/// It uses a technique called RectCut.
|
||||
/// Learn more about RectCut here: https://halt.software/p/rectcut-for-dead-simple-ui-layouts
|
||||
|
||||
import parin;
|
||||
|
||||
|
@ -15,7 +17,7 @@ bool update(float dt) {
|
|||
prepareUi();
|
||||
setUiFocus(0);
|
||||
// Create an area for arranging UI items.
|
||||
auto area = Rect(Vec2(8), resolution - Vec2(8));
|
||||
auto area = Rect(Vec2(8), resolution);
|
||||
auto group = Rect();
|
||||
// Group 1.
|
||||
group = area.subTop(groupHeight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue