zephr/os/windows: create window and gl context

This commit is contained in:
2024-01-26 01:32:54 +02:00
committed by Illusion
parent 43da578ff2
commit 5bc58af47f
14 changed files with 1013 additions and 573 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
// based on system packaged freetype 2.11.1 on Ubuntu 22.04
// @INCOMPLETE
package freetype
foreign import freetype "system:freetype"
when ODIN_OS == .Linux { foreign import freetype "system:freetype" }
when ODIN_OS == .Windows { foreign import freetype "libs/freetype.lib" }
foreign freetype {
@(link_name = "FT_Init_FreeType")
@@ -10,7 +13,7 @@ foreign freetype {
@(link_name = "FT_Set_Pixel_Sizes")
Set_Pixel_Sizes :: proc(face: Face, pixel_width: FT_UInt, pixel_height: FT_UInt) -> FT_Error ---
@(link_name = "FT_Load_Char")
Load_Char :: proc(face: Face, char_code: FT_ULong, load_flags: LoadFlags) -> FT_Error ---
Load_Char :: proc(face: Face, char_code: ULong, load_flags: LoadFlags) -> FT_Error ---
@(link_name = "FT_Done_Face")
Done_Face :: proc(face: Face) -> FT_Error ---
@(link_name = "FT_Done_FreeType")