26 lines
538 B
Odin
26 lines
538 B
Odin
// Placeholder for raylib C interop bindings
|
|
// Assumes raylib headers are available system-wide
|
|
package raylib
|
|
|
|
@(import_c)
|
|
const (
|
|
RAYWHITE = 0xF5F5F5FF
|
|
)
|
|
|
|
// Window functions
|
|
InitWindow :: proc(width: i32, height: i32, title: rawstring) #cdecl
|
|
CloseWindow :: proc() #cdecl
|
|
WindowShouldClose :: proc() -> bool #cdecl
|
|
SetTargetFPS :: proc(fps: i32) #cdecl
|
|
|
|
// Drawing functions
|
|
BeginDrawing :: proc() #cdecl
|
|
EndDrawing :: proc() #cdecl
|
|
ClearBackground :: proc(color: u32) #cdecl
|
|
|
|
// Vector2 type
|
|
Vector2 :: struct {
|
|
X: f32,
|
|
Y: f32,
|
|
}
|