Be careful using anonymous structs in the union, however; this can lead to name collisions.
Parker —
Yes, you can access the members inside the unnamed structs by name, which is why I find this meth…
Italo —
That seems to be a nice way to handle something like this.
Let me just see if I understood what …
Caius —
For this specific case you could do:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
…
Parker —
Here's one possible way of doing it:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
…
Hey Handmade community,
Feverishly working on my Kiss engine project, I have everything for a 2D…
Italo —
Ok, thanks for the help, you guys are awesome. Can I ask one more question?
I have 3 structures …
Effectively, yeah; it is, however, still a method of organizing data in a non-OOP way. It differs…
Not a huge amount has changed since the last update, the main thing is probably that insobot now …
@Delix: Your method is more a way to achieve polymorphism without virtual functions.
I think wha…
The Win32MainWindowCallback function is, as its name imply, a callback function, meaning that it'…
A union says the following: "This block of memory can be interpreted to mean one of the following…
Italo —
I think I get what you're suggesting, but I have a technical question about your structure.
Woul…
Following up on what mmozeiko said, I strongly recommend creating a single state struct and using…
You evil human being! You just pulled a 'to be continued...' on us and it killing me!
mrmixer Will there be a free version or will it be patreon only ?
I don't have a final answer fo…
Neo Ar —
For the month of April, we did the following:
Studied GPIO [RISCY 24]
Studied the OTP [RISCY 25…
Greetings, I'm on day 003 (just starting). I'm debugging win32_handmade.exe using Visual Studio…
The code fragment you posted is not handling data in OOP way. Are you asking how to write code th…
Italo —
So, I'm still learning so this question might be dumb, but here it is:
Imagine the following cod…
The heart of Cascade it it's layout engine - the second most complicated thing in the app. (Scale…
Community,
This is a short one, and if you're a Patron this should be a rehash of the same reque…
Hey everyone!
Sorry updates have been a bit dry recently; it's nearing the end of the semester …
Apologies for the dirty joke. I know I have a problem.
The title pretty much says it all. I laun…
Odin v0.2.1
https://github.com/gingerBill/Odin/releases/tag/v0.2.1
Mr4thDimention The only feature I have missed so far is when I browse for a video and watch it, i…
1. Since SecondaryBuffer->Play(0, 0, DSBPLAY_LOOPING); is after the first fillSoundbuffer it s…
Hi Simon,
Thanks for your reply. You certainly provided more useful insight about the working o…
The semester is over, though, so May should be more fertile.
If the sound buffer played only one tone continuously, you could fill it once and let it play for…