Tuesday, September 21, 2010

iomanip

C++ std iomanip is super handy!
e.g.

"setw(4) << setfill('0')"

http://www.cplusplus.com/reference/iostream/manipulators/

Thursday, September 16, 2010

Diagram of the Day 3

thanks to @fxmonkeydan for this little beauty :

Thursday, September 09, 2010

these just make me laugh...


 


this week on Jamie Oliver inside a badgers arse :
"Inside a Badgers Arse Risotto".

Wednesday, September 01, 2010

RSL shadeop plugin memory

So there are 5 ways to manage memory allocation in an RSL shadeop.

1. per plugin init - lifetime from first call to end of frame, not threadsafe, no access to args
RSLEXPORT RslFunctionTable RslPublicFunctions(myFunctions,
initStringBuffer,
deleteStringBuffer);

2. per function init - lifetime from first call to end of frame, not threadsafe, access to args
static RslFunction myFunctions[] = {
{ "string appendTx(string)", appendTx, initStringBuffer, deleteStringBuffer },
{ NULL }

3. Set / GetGlobalStorate - lifetime from first call to end of frame, not threadsafe

4. Set / GetThreadData - lifetime of thread, threadsafe

5. Set / GetLocalData - lifetime of current shaded grid, threadsafe