add_library (wgltrace MODULE opengl32.def
wgltrace.cpp
glcaps.cpp
+ gltrace_state.cpp
)
add_dependencies (wgltrace glproc)
target_link_libraries (wgltrace
add_library (cgltrace SHARED
cgltrace.cpp
glcaps.cpp
+ gltrace_state.cpp
)
add_dependencies (cgltrace glproc)
add_library (glxtrace SHARED
glxtrace.cpp
glcaps.cpp
+ gltrace_state.cpp
)
add_dependencies (glxtrace glproc)
add_library (egltrace SHARED
egltrace.cpp
glcaps.cpp
+ gltrace_state.cpp
)
add_dependencies (egltrace glproc)
print ' VERTEX_ATTRIB_NV,'
print '};'
print
- print 'gltrace::Context *'
- print 'gltrace::getContext(void)'
- print '{'
- print ' // TODO return the context set by other APIs (GLX, EGL, and etc.)'
- print ' static gltrace::Context _ctx = { gltrace::PROFILE_COMPAT, false, false, false };'
- print ' return &_ctx;'
- print '}'
- print
print 'static vertex_attrib _get_vertex_attrib(void) {'
print ' gltrace::Context *ctx = gltrace::getContext();'
print ' if (ctx->user_arrays_arb || ctx->user_arrays_nv) {'
--- /dev/null
+#include <gltrace.hpp>
+
+gltrace::Context *
+gltrace::getContext(void)
+{
+ // TODO return the context set by other APIs (GLX, EGL, and etc.)
+ static gltrace::Context _ctx = { gltrace::PROFILE_COMPAT, false, false, false };
+ return &_ctx;
+}
+