2013-04-18 06:09:55 +03:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-02-23 08:17:57 +02:00
|
|
|
|
2009-04-03 17:35:49 +03:00
|
|
|
#ifndef _OSD_H_
|
|
|
|
#define _OSD_H_
|
2009-02-23 08:17:57 +02:00
|
|
|
|
|
|
|
namespace OSD
|
|
|
|
{
|
|
|
|
|
|
|
|
// On-screen message display
|
2013-03-01 02:31:57 +02:00
|
|
|
void AddMessage(const char* str, u32 ms = 2000);
|
2009-02-23 08:17:57 +02:00
|
|
|
void DrawMessages(); // draw the current messages on the screen. Only call once per frame.
|
2011-02-02 06:40:27 +02:00
|
|
|
void ClearMessages();
|
2009-02-23 08:17:57 +02:00
|
|
|
|
2013-04-13 08:48:53 +03:00
|
|
|
// On-screen callbacks
|
|
|
|
enum CallbackType
|
|
|
|
{
|
|
|
|
OSD_INIT = 0,
|
|
|
|
OSD_ONFRAME,
|
|
|
|
OSD_SHUTDOWN
|
|
|
|
};
|
|
|
|
typedef void(*CallbackPtr)(u32);
|
|
|
|
|
|
|
|
void AddCallback(CallbackType OnType, CallbackPtr FuncPtr, u32 UserData);
|
|
|
|
|
|
|
|
void DoCallbacks(CallbackType OnType);
|
2009-02-23 08:17:57 +02:00
|
|
|
} // namespace
|
|
|
|
|
2009-04-03 17:35:49 +03:00
|
|
|
#endif // _OSD_H_
|
2009-02-24 07:20:52 +02:00
|
|
|
|