unprivated a function
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 12 Jul 2021 23:32:12 +0000 (18:32 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 12 Jul 2021 23:32:12 +0000 (18:32 -0500)
modules/ui/font.onyx [new file with mode: 0644]
modules/ui/ui.onyx

diff --git a/modules/ui/font.onyx b/modules/ui/font.onyx
new file mode 100644 (file)
index 0000000..ff0375f
--- /dev/null
@@ -0,0 +1,5 @@
+package ui
+
+Font :: struct {
+    texture: gfx.Texture;
+}
\ No newline at end of file
index cddd660b2c62b447364887d7aba3dbf7d5ad18bd..2f08920c417b169ae2600dd2c005435d4f97e15f 100644 (file)
@@ -206,10 +206,8 @@ get_text_width :: (text: str, size := DEFAULT_TEXT_SIZE) -> f32 {
 }
 
 
-
-
-
-#private move_towards :: (value: ^$T, target: T, step: T) {
+@Relocate
+move_towards :: (value: ^$T, target: T, step: T) {
     if *value < target do *value += step;
     if *value > target do *value -= step;
     if *value > target - step && *value < target + step do *value = target;