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.
Casey Muratori
I don't there's any reason not to do it that way, but I guess I haven't tried it... it looks reas…
»
Simon Anciaux
Since every part of a union is always accessible, is there a reason to not write v4 like this : }…
»
Andrew Bromage
What happens with a star is that (neglecting redshift, effects due to participating media such as…
»
Andrew Bromage
This is exactly right. As Alvy Ray Smith pointed out, . ARS noted that gamma is a display device …
»
Casey Muratori
Yes, there is a limit! Once you get to the point where the size of the projected image on your re…
»
The_8th_mage
Yeah, absolutely. I was coming from thinking about stuff like stars where you can't assess the bea…
»
Casey Muratori
Yeah. Keep in mind that neither way is "wrong", it's just that I wanted to make sure to point out…
»
Casey Muratori
Yeah, it is an unfortunately common mistake for people to think that the apparent brightness of d…
»
The_8th_mage
Hi everyone, in the stream yesterday (#96), Casey underlined "illumination is constant along a lin…
»
Jon Valdes
You do have a point there. You can reuse code more easily with your method. I guess your teachings…
»
Mox
It was cool to see that after my quick question pre-stream, you actually devoted half the episode …
»
Casey Muratori
Consider: Versus: It's not a hugely important thing, but it's something I'd like to avoid if po…
»
Jon Valdes
Oh, yes, I meant the dll init function does it automatically, I'm not doing anything manually :)
»
Mārtiņš Možeiko
You don't need to do that. Because g_funcPointers array is global in dll, it is reloaded together…
»
Jon Valdes
Wow, relax, everyone! No need to fight over this :) The functions are in the DLL, and I take funct…
»
Ritchie Brannan
Reading post #3250 by the OP, I'm not entirely clear what the OP is trying to achieve with the fun…
»
Ritchie Brannan
I read the OP question as one of fixing up function pointers. He also wanted a way of avoiding usi…
»
Mārtiņš Možeiko
I'm not sure we are talking about same things. OP asked how to patch his C++ pointers in inheritan…
»
Ritchie Brannan
Obviously you can do this in both directions, exposing code in the DLL to the engine and vice-vers…
»
Ritchie Brannan
That's 21 line instead of 10. How that is far less code? Wow, that's pretty disingenuous. There …
»
Mārtiņš Možeiko
So you want to write this? struct MainMenu : MyDllInterface { virtual bool aFunction(); }; struct…
»
Ritchie Brannan
// the interface will look something like this: struct MyDllInterface { virtual bool aFunction(…
»
Ritchie Brannan
If I expose a function returning a bool it will return a bool. If I call a function returning a fl…
»
Ritchie Brannan
Just call the function directly, so 1 line.
»
Mārtiņš Možeiko
I wrote 10 lines to call 3 different functions (counting also empty lines). How many lines of cod…
»
Mārtiņš Možeiko
And how you imagine using such functions with different return types? WhatTypeIuseHere? result = …
»
Ritchie Brannan
Basically there is far less code involved if you use a virtual interface.
»
Ritchie Brannan
..and your functions can all have different return values. The entire function signature can be di…
»
Mārtiņš Možeiko
So are functions in OP question.
»
Ritchie Brannan
Well for one thing, your functions can all have different parameter lists. From a code stand point…
»