iw4x-client/iw4/Components/Renderer.hpp

22 lines
378 B
C++
Raw Normal View History

2015-12-23 10:56:02 -05:00
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;
};
}