Roland Posted May 12, 2014 Share Posted May 12, 2014 Object* extra is not described. What is it? Also Parameters talks about 'hookname' which isn't among the parameters. Please make correction in Documentation Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 12, 2014 Share Posted May 12, 2014 hi Roland, see this topic: http://www.leadwerks.com/werkspace/topic/6386-c-finding-entities-in-a-scene/#entry54110 Quote Link to comment Share on other sites More sharing options...
Rick Posted May 12, 2014 Share Posted May 12, 2014 That topic doesn't seem to talk about the Object pointer param. I believe this is much like how Josh always does the void * stuff where you can cast and put anything in, and then cast back in the callback so we can call functions of that object. For example since the library is C++ this is a way for us to pass in 'this' so that we can call a function of the class that we called this map load from to add the items to our own list if need be. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 12, 2014 Share Posted May 12, 2014 The object you supply gets passed to the hook as an argument. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Roland Posted May 13, 2014 Author Share Posted May 13, 2014 Great, then I know. That suited me perfect Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.