Improving multimedia, trying to add a single c library mode
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user