import specs.stdapi as stdapi
import specs.glapi as glapi
+import specs.glesapi as glesapi
from retrace import Retracer
print ' glretrace::snapshot(call.no - 1);'
print ' }'
if function.name == 'glFrameTerminatorGREMEDY':
- print ' glretrace::frame_complete(call.no);'
+ print ' glretrace::frame_complete(call);'
return
Retracer.retrace_function_body(self, function)
# Post-snapshots
if function.name in ('glFlush', 'glFinish'):
print ' if (!glretrace::double_buffer) {'
- print ' glretrace::frame_complete(call.no);'
+ print ' glretrace::frame_complete(call);'
print ' }'
if is_draw_array or is_draw_elements or is_misc_draw:
print ' if (glretrace::snapshot_frequency == glretrace::FREQUENCY_DRAW) {'
'''
api = glapi.glapi
+ api.add_api(glesapi.glesapi)
retracer = GlRetracer()
retracer.retrace_api(api)