iw4x-client/iw4/Components/Renderer.hpp
2015-12-23 16:56:02 +01:00

22 lines
378 B
C++

namespace Components
{
class Renderer : public Component
{
public:
typedef void(*Callback)();
Renderer();
~Renderer();
const char* GetName() { return "Renderer"; };
static void OnFrame(Callback callback);
private:
static void FrameHook();
static void FrameHandler();
static std::vector<Callback> FrameCallbacks;
static Utils::Hook DrawFrameHook;
};
}