OnScreenDisplay: Make CallbackType an enum class

This commit is contained in:
Lioncash
2016-01-02 14:45:41 -05:00
parent 066af14272
commit edda018d54
7 changed files with 14 additions and 14 deletions

View File

@ -17,13 +17,13 @@ void DrawMessages(); // draw the current messages on the screen. Only call once
void ClearMessages();
// On-screen callbacks
enum CallbackType
enum class CallbackType
{
OSD_INIT = 0,
OSD_ONFRAME,
OSD_SHUTDOWN
Initialization,
OnFrame,
Shutdown
};
typedef std::function<void()> Callback;
using Callback = std::function<void()>;
void AddCallback(CallbackType type, Callback cb);
void DoCallbacks(CallbackType type);