openspades/Sources/Draw/GLProfiler.h
yvt 1025efbeaf * Better Graphics Profiling
* Optimized Water Color Texture Update
2013-08-25 09:43:01 +09:00

34 lines
555 B
C++

//
// GLProfiler.h
// OpenSpades
//
// Created by Tomoaki Kawada on 8/25/13.
// Copyright (c) 2013 yvt.jp. All rights reserved.
//
#pragma once
#include <vector>
#include <string>
namespace spades {
class Stopwatch;
namespace draw {
class IGLDevice;
class GLProfiler {
std::string msg;
std::string name;
Stopwatch *watch;
IGLDevice *device;
double time, timeNoFinish;
public:
static void ResetLevel();
GLProfiler(IGLDevice *, const char *format, ...);
std::string GetProfileMessage();
~GLProfiler();
};
}
}