##########################################################################
#
-# Copyright 2008-2009 VMware, Inc.
+# Copyright 2008-2010 VMware, Inc.
# All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
##########################################################################/
-from stdapi import *
-from glapi import glapi
-import trace
+from glxapi import glxapi
+from trace import Tracer
-glxapi = API("GLX")
-
-PROC = Opaque("__GLXextFuncPtr")
-
-glxapi.add_functions(glapi.functions)
-glxapi.add_functions([
- Function(PROC, "glXGetProcAddressARB", [(Alias("const GLubyte *", CString), "procName")]),
- Function(PROC, "glXGetProcAddress", [(Alias("const GLubyte *", CString), "procName")]),
-])
-
-
-class GlxTracer(trace.Tracer):
+class GlxTracer(Tracer):
def get_function_address(self, function):
if function.name.startswith("glXGetProcAddress"):
print ' if (!pglXGetProcAddress) {'
print ' pglXGetProcAddress = (PglXGetProcAddress)dlsym(RTLD_NEXT, "glXGetProcAddress");'
print ' if (!pglXGetProcAddress)'
- print ' Log::Abort();'
+ print ' Trace::Abort();'
print ' }'
return 'pglXGetProcAddress((const GLubyte *)"%s")' % (function.name,)
print '#include <dlfcn.h>'
print '#include <X11/Xlib.h>'
print '#include <GL/gl.h>'
- print '#include <GL/glext.h>'
+ print '#include "glext.h"'
print '#include <GL/glx.h>'
- print '#include <GL/glxext.h>'
+ print '#include "glxext.h"'
print
- print '#include "log.hpp"'
- print '#include "glhelpers.hpp"'
+ print '#include "trace_write.hpp"'
+ print '#include "glsize.hpp"'
print
print 'extern "C" {'
print