diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-11-25 20:32:59 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-11-25 20:32:59 +0000 |
commit | 99771fcc2dade2764e765eff9822533326ec8128 (patch) | |
tree | f782866be51e6d52f19d32184c55b818b93e26cb /glxtrace.py | |
parent | ddedb6bcc0fee9571861aecbf4574f549761f763 (diff) |
Split glxapi.
Diffstat (limited to 'glxtrace.py')
-rw-r--r-- | glxtrace.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/glxtrace.py b/glxtrace.py index 2729844..b8cd151 100644 --- a/glxtrace.py +++ b/glxtrace.py @@ -1,6 +1,6 @@ ########################################################################## # -# 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 @@ -24,23 +24,11 @@ ##########################################################################/ -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"): |