Use glproc.hpp also for both tracing and retracing.
diff --git a/stdapi.py b/stdapi.py
index 7d0c982..1f8b81e 100644
--- a/stdapi.py
+++ b/stdapi.py
@@ -510,7 +510,7 @@
class API:
- def __init__(self, name):
+ def __init__(self, name = None):
self.name = name
self.headers = []
self.functions = []
@@ -543,6 +543,11 @@
def add_interfaces(self, interfaces):
self.interfaces.extend(interfaces)
+ def add_api(self, api):
+ self.headers.extend(api.headers)
+ self.add_functions(api.functions)
+ self.add_interfaces(api.interfaces)
+
def get_function_by_name(self, name):
for function in self.functions:
if function.name == name: