We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Finalspace
Hi there, in Handmade Hero we use a line intersection test to determine the actual time of impac…
»
dvkirn
Clang did freak out on me compiling the bottom one. It seemed to think there was only 3 elements …
»
Casey Muratori
Man, film/video industry compositing must be a huge headache... it's basically the nexus point wh…
»
Casey Muratori
I don't think there's any reason not to do it that way, but I guess I haven't tried it... it look…
»
Simon Anciaux
Since every part of a union is always accessible, is there a reason to not write v4 like this : …
»
Andrew Bromage
e1211 Yeah, absolutely. I was coming from thinking about stuff like stars where you can't assess …
»
Andrew Bromage
cmuratori My assumption is that you want linear color values, premulitplied by linear alpha, ever…
»
Casey Muratori
Yes, there is a limit! Once you get to the point where the size of the projected image on your r…
»
The_8th_mage
Yeah, absolutely. I was coming from thinking about stuff like stars where you can't assess the be…
»
Casey Muratori
Yeah. Keep in mind that neither way is "wrong", it's just that I wanted to make sure to point ou…
»
Casey Muratori
Yeah, it is an unfortunately common mistake for people to think that the apparent brightness of l…
»
The_8th_mage
Hi everyone, in the stream yesterday (#96), Casey underlined "illumination is constant along a li…
»
Jon Valdes
You do have a point there. You can reuse code more easily with your method. I guess your teachin…
»
Mox
It was cool to see that after my quick question pre-stream, you actually devoted half the episode…
»
Casey Muratori
jon_valdes Well, it's just 1 line of code regardless of how many possible scenes you have. A swit…
»
Jon Valdes
Oh, yes, I meant the dll init function does it automatically, I'm not doing anything manually :)
»
Mārtiņš Možeiko
The dll, on load, makes sure the global function pointers array is initialized every time You do…
»
Jon Valdes
Wow, relax, everyone! No need to fight over this :) The functions are in the DLL, and I take fun…
»
Ritchie Brannan
Reading post #3250 by the OP, I'm not entirely clear what the OP is trying to achieve with the fu…
»
Ritchie Brannan
I read the OP question as one of fixing up function pointers. He also wanted a way of avoiding us…
»
Mārtiņš Možeiko
I'm not sure we are talking about same things. OP asked how to patch his C++ pointers in inherit…
»
Ritchie Brannan
Obviously you can do this in both directions, exposing code in the DLL to the engine and vice-versa
»
Ritchie Brannan
That's 21 line instead of 10. How that is far less code? // the only thing that needs patching o…
»
Mārtiņš Možeiko
So you want to write this? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21struct M…
»
Ritchie Brannan
// the interface will look something like this: struct MyDllInterface { virtual bool aFunc…
»
Ritchie Brannan
If I expose a function returning a bool it will return a bool. If I call a function returning a f…
»
Ritchie Brannan
Just call the function directly, so 1 line.
»
Mārtiņš Možeiko
Icabod Basically there is far less code involved if you use a virtual interface. I wrote 10 line…
»
Mārtiņš Možeiko
And how you imagine using such functions with different return types? 1 2 3Object *blah; WhatTy…
»
Ritchie Brannan
Basically there is far less code involved if you use a virtual interface.
»