Go Back   AC3D Forums > Resources > AC3D Plugins and Other Resources
Register FAQ Members List Calendar Today's Posts

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 18th November 2015, 08:41 AM   #1
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default 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).
Geoffm is offline   Reply With Quote
 

Tags
ac_plugin, callback, plugin


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 04:47 AM.


AC3D Forum
(C) Inivis Limited 2020