Font drawing is nice now

This commit is contained in:
2024-02-13 17:16:39 -05:00
parent f36b05e795
commit 5c124521dc
13 changed files with 465 additions and 128 deletions

View File

@ -4,6 +4,7 @@ package sectr
import "core:mem"
import "core:mem/virtual"
import "core:path/filepath"
Byte :: 1
Kilobyte :: 1024 * Byte
@ -27,7 +28,9 @@ terabyte :: proc ( tb : $ integer_type ) -> integer_type {
}
Allocator :: mem.Allocator
AllocatorError :: mem.Allocator_Error
alloc :: mem.alloc
alloc_bytes :: mem.alloc_bytes
Arena :: mem.Arena
arena_allocator :: mem.arena_allocator
arena_init :: mem.arena_init
@ -36,12 +39,9 @@ slice_ptr :: mem.slice_ptr
Tracking_Allocator :: mem.Tracking_Allocator
tracking_allocator :: mem.tracking_allocator
tracking_allocator_init :: mem.tracking_allocator_init
file_name_from_path :: filepath.short_stem
OS_Type :: type_of(ODIN_OS)
import rl "vendor:raylib"
Font :: rl.Font
get_bounds :: proc {
box_get_bounds,
view_get_bounds,