I don't think there's any reason not to do it that way, but I guess I haven't tried it... it look…
Since every part of a union is always accessible, is there a reason to not write v4 like this :
…
e1211 Yeah, absolutely. I was coming from thinking about stuff like stars where you can't assess …
cmuratori My assumption is that you want linear color values, premulitplied by linear alpha, ever…
Yes, there is a limit! Once you get to the point where the size of the projected image on your r…
Yeah, absolutely. I was coming from thinking about stuff like stars where you can't assess the be…
Yeah. Keep in mind that neither way is "wrong", it's just that I wanted to make sure to point ou…
Yeah, it is an unfortunately common mistake for people to think that the apparent brightness of l…
Hi everyone,
in the stream yesterday (#96), Casey underlined "illumination is constant along a li…
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…
jon_valdes Well, it's just 1 line of code regardless of how many possible scenes you have. A swit…
Oh, yes, I meant the dll init function does it automatically, I'm not doing anything manually :)
The dll, on load, makes sure the global function pointers array is initialized every time
You do…
Wow, relax, everyone! No need to fight over this :)
The functions are in the DLL, and I take fun…
Reading post #3250 by the OP, I'm not entirely clear what the OP is trying to achieve with the fu…
I read the OP question as one of fixing up function pointers. He also wanted a way of avoiding us…
I'm not sure we are talking about same things.
OP asked how to patch his C++ pointers in inherit…
Obviously you can do this in both directions, exposing code in the DLL to the engine and vice-versa
That's 21 line instead of 10. How that is far less code?
// the only thing that needs patching o…
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…
// the interface will look something like this:
struct MyDllInterface
{
virtual bool aFunc…
If I expose a function returning a bool it will return a bool. If I call a function returning a f…
Just call the function directly, so 1 line.
Icabod Basically there is far less code involved if you use a virtual interface.
I wrote 10 line…
And how you imagine using such functions with different return types?
1
2
3Object *blah;
WhatTy…
Basically there is far less code involved if you use a virtual interface.
..and your functions can all have different return values. The entire function signature can be d…
Well for one thing, your functions can all have different parameter lists.
So are functions in OP…
Well for one thing, your functions can all have different parameter lists.
From a code stand poi…