18th November 2015, 08:41 AM | #1 |
Junior Member
Member
Join Date: Aug 2013
Location: London UK
Posts: 22
|
Render callbacks
I have created a render callback for each object in my scene (using plugin in C/C++). The callback is called 8 times for each AC3D object (if 4 views are displayed) or twice per object if 1 view is on display. The callback argument 'is_primary_render' eliminates half of these callbacks.
I only want to get the callback once per redraw, so I would like either: to identify the window which is causing the callback OR have a type of callback which occurs before all views are updated. I think there would be many uses for the first option - perhaps 'is_primary_render' could be an integer to identify the ACView being redrawn (or 0 for updates that are not window related). |
Tags |
ac_plugin, callback, plugin |
|
|