Improving multimedia, trying to add a single c library mode

This commit is contained in:
Krzosa Karol
2022-10-02 12:53:29 +02:00
parent 5baff3585e
commit e098663d82
9 changed files with 152 additions and 100 deletions

View File

@@ -1,11 +1,12 @@
// We can bind module to a name
M :: #import "Multimedia.core"
// We can bind a struct to a name
Mu :: M.Mu
// You can bind struct to a name
MU :: M.MU
// We can bind a lambda to a name
Start :: M.StartMultimedia
Update :: M.UpdateMultimedia
// Other example of binding a lambda to a name
SomeOtherLambda :: () ;; pass
@@ -33,7 +34,7 @@ main :: (): int
#Assert(NewInt == int)
#Assert(StrictInt != int)
mu: Mu = Start(x = 1280, y = 720)
Assert(mu.x == 1280 && mu.y == 720)
Start(x = 1280, y = 720)
Update()
return 0