X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glretrace.hpp;h=8ba2a80edd477b8e2b418f0c21bfb76b57aace32;hb=452d3256a3ba7f249222ef857d69c8caaaa753f3;hp=9cf615e1ba029e6b025ba18bd68cb80f8aab60d2;hpb=2741ed8b85842cf5f08fe6dff8d4ae5626434046;p=apitrace diff --git a/glretrace.hpp b/glretrace.hpp index 9cf615e..8ba2a80 100644 --- a/glretrace.hpp +++ b/glretrace.hpp @@ -26,7 +26,6 @@ #ifndef _GLRETRACE_HPP_ #define _GLRETRACE_HPP_ -#include "trace_parser.hpp" #include "glws.hpp" #include "retrace.hpp" @@ -36,9 +35,8 @@ namespace glretrace { extern bool double_buffer; extern bool insideGlBeginEnd; -extern Trace::Parser parser; -extern glws::WindowSystem *ws; -extern glws::Visual *visual; +extern glws::Profile defaultProfile; +extern glws::Visual *visual[glws::PROFILE_MAX]; extern glws::Drawable *drawable; extern glws::Context *context; @@ -46,30 +44,20 @@ extern unsigned frame; extern long long startTime; extern bool wait; -enum frequency { - FREQUENCY_NEVER = 0, - FREQUENCY_FRAME, - FREQUENCY_FRAMEBUFFER, - FREQUENCY_DRAW, -}; - extern bool benchmark; -extern const char *compare_prefix; -extern const char *snapshot_prefix; -extern enum frequency snapshot_frequency; extern unsigned dump_state; void -checkGlError(Trace::Call &call); +checkGlError(trace::Call &call); extern const retrace::Entry gl_callbacks[]; extern const retrace::Entry cgl_callbacks[]; extern const retrace::Entry glx_callbacks[]; extern const retrace::Entry wgl_callbacks[]; +extern const retrace::Entry egl_callbacks[]; -void snapshot(unsigned call_no); -void frame_complete(unsigned call_no); +void frame_complete(trace::Call &call); void updateDrawable(int width, int height);