Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 14:56:57 +00:00
commit d189bb22f4
19 files changed
+361

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
// Application-facing graphics contracts only. No AGX implementation is included.
module agila
pub struct Vec2 { pub: x f32; y f32 }
pub struct Vec3 { pub: x f32; y f32; z f32 }
pub struct MeshDescriptor {
pub:
vertex_count int
index_count int
}
pub struct TextureDescriptor {
pub:
width int
height int
format string
}
pub fn validate_mesh(desc MeshDescriptor) ! {
if desc.vertex_count <= 0 || desc.index_count <= 0 {
return AgilaError{code: 20, message: 'Mesh counts must be positive'}
}
}
pub fn submit_mesh(desc MeshDescriptor) ! {
validate_mesh(desc)!
println('[Agila SDK sandbox graphics] submitted mesh ${desc.vertex_count}/${desc.index_count}')
}