X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glretrace.hpp;h=74eb6742ede89d50b750d8c2584837f9e8e1260d;hb=974a3fbc44f21b738830e1b031d6d3c7587856ae;hp=a579d58f3aef828595857d666116da24eaf96329;hpb=d0c9175f4e930773d732fd4a0de3d1f87da83012;p=apitrace diff --git a/glretrace.hpp b/glretrace.hpp index a579d58..74eb674 100644 --- a/glretrace.hpp +++ b/glretrace.hpp @@ -26,8 +26,6 @@ #ifndef _GLRETRACE_HPP_ #define _GLRETRACE_HPP_ -#include - #include "trace_parser.hpp" #include "glws.hpp" @@ -43,9 +41,6 @@ extern glws::Visual *visual; extern glws::Drawable *drawable; extern glws::Context *context; -extern int window_width; -extern int window_height; - extern unsigned frame; extern long long startTime; extern bool wait; @@ -57,9 +52,14 @@ extern const char *snapshot_prefix; extern unsigned dump_state; void -checkGlError(void); +checkGlError(Trace::Call &call); + +void retrace_call_cgl(Trace::Call &call); +void retrace_call_glx(Trace::Call &call); +void retrace_call_wgl(Trace::Call &call); -void state_dump(std::ostream &os); +void snapshot(unsigned call_no); +void frame_complete(unsigned call_no); } /* namespace glretrace */