Get rid of memcopies in codegen, improve Multimedia
This commit is contained in:
@@ -8,11 +8,13 @@ API and name inspired by one of Per Vognsen streams
|
||||
https://www.youtube.com/watch?v=NG_mUhc8LRw&list=PLU94OURih-CjrtFuazwZ5GYzTrupOMDL7&index=19
|
||||
All of his channel is recommended watch for programmers.
|
||||
*/
|
||||
Mu :: struct
|
||||
Mu: MU
|
||||
MU :: struct
|
||||
scrn: *U32
|
||||
x : S64
|
||||
y : S64
|
||||
|
||||
key: [Key.Count]KeyState
|
||||
frame_count: U64
|
||||
time: MuTime
|
||||
quit: Bool
|
||||
@@ -26,7 +28,18 @@ MuTime :: struct
|
||||
start : F64
|
||||
frame_start: F64
|
||||
|
||||
KeyState :: struct
|
||||
is_down: Bool
|
||||
|
||||
Key :: enum
|
||||
Nil
|
||||
Up;Down;Left;Right;Escape;Control;Backspace;Alt;Shift;Tab
|
||||
F1;F2;F3;F4;F5;F6;F7;F8;F9;F10
|
||||
F11;F12;A;B;C;D;E;F;G;H
|
||||
I;J;K;L;M;N;O;P;Q;R
|
||||
S;T;U;V;W;X;Y;Z;K0;K1
|
||||
K2;K3;K4;K5;K6;K7;K8;K9
|
||||
Count
|
||||
|
||||
StartMultimedia :: W32.StartMultimedia
|
||||
UpdateMultimedia :: W32.UpdateMultimedia
|
||||
|
||||
Reference in New Issue
Block a user