Load cannot be namespaced anymore due to weird namespace behaviour that this creates.

I need to add a way to import but force evaluation of everything in the future to make
that up.
This commit is contained in:
Krzosa Karol
2022-10-06 14:24:29 +02:00
parent 8395969620
commit 0010b92ef1
9 changed files with 19 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
OS :: #import "Windows.core"
#import "Arena.core"
OS :: #import "Windows.core"
SizeU :: U64
ClampTopSizeU :: (val: SizeU, max: SizeU): SizeU

View File

@@ -10,8 +10,6 @@ https://www.youtube.com/watch?v=NG_mUhc8LRw&list=PLU94OURih-CjrtFuazwZ5GYzTrupOM
All of his channel is recommended watch for programmers.
*/
StartMultimedia :: W32.StartMultimedia
UpdateMultimedia :: W32.UpdateMultimedia
Mu: MU
MU :: struct
@@ -25,7 +23,7 @@ MU :: struct
quit: Bool
frame_arena: Arena
os: W32.OS
os: Platform
MUWindow :: struct
x: S64
@@ -61,4 +59,4 @@ Mouse :: struct
#import "Base.core"
#import "Math.core"
#import "Arena.core"
W32 :: #load "win32_multimedia.core"
#load "win32_multimedia.core"

View File

@@ -4,7 +4,7 @@
#import "WINMM.core"
#import "Windows.core"
OS :: struct
Platform :: struct
bitmap: Bitmap
window_dc: HDC
window: HWND
@@ -130,7 +130,7 @@ StartMultimedia :: (x: S64 = 1280, y: S64 = 720, title: String = "Hello people!"
Assert(size.x == x && size.y == y)
Mu.os.window_dc = GetDC(Mu.os.window)
Mu.os.bitmap = W32.CreateBitmap(Mu.os.window_dc, size)
Mu.os.bitmap = CreateBitmap(Mu.os.window_dc, size)
Mu.screen = Mu.os.bitmap.data
Mu.window.x = size.x