bool double_buffer = true;
bool insideGlBeginEnd = false;
-Trace::Parser parser;
+trace::Parser parser;
glws::Visual *visual = NULL;
glws::Drawable *drawable = NULL;
glws::Context *context = NULL;
unsigned dump_state = ~0;
void
-checkGlError(Trace::Call &call) {
+checkGlError(trace::Call &call) {
GLenum error = glGetError();
if (error == GL_NO_ERROR) {
return;
return;
}
- Image::Image *ref = NULL;
+ image::Image *ref = NULL;
if (compare_prefix) {
char filename[PATH_MAX];
snprintf(filename, sizeof filename, "%s%010u.png", compare_prefix, call_no);
- ref = Image::readPNG(filename);
+ ref = image::readPNG(filename);
if (!ref) {
return;
}
}
}
- Image::Image *src = glstate::getDrawBufferImage(GL_RGBA);
+ image::Image *src = glstate::getDrawBufferImage(GL_RGBA);
if (!src) {
return;
}
}
-void frame_complete(Trace::Call &call) {
+void frame_complete(trace::Call &call) {
++frame;
if (!drawable) {
retracer.addCallbacks(wgl_callbacks);
retracer.addCallbacks(cgl_callbacks);
- startTime = OS::GetTime();
- Trace::Call *call;
+ startTime = os::GetTime();
+ trace::Call *call;
while ((call = parser.parse_call())) {
retracer.retrace(*call);
// Reached the end of trace
glFlush();
- long long endTime = OS::GetTime();
+ long long endTime = os::GetTime();
float timeInterval = (endTime - startTime) * 1.0E-6;
if (retrace::verbosity >= -1) {