staging some future refactoring, .h -> hpp, fix for rendering w/ audio
This commit is contained in:
1 parent
77f6e65b15
commit
2d27b7e8fb
76 files changed
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace anm2ed::imgui
|
||||
{
|
||||
class Toast
|
||||
{
|
||||
public:
|
||||
std::string message{};
|
||||
float lifetime{};
|
||||
|
||||
Toast(const std::string&);
|
||||
};
|
||||
|
||||
class Toasts
|
||||
{
|
||||
public:
|
||||
std::vector<Toast> toasts{};
|
||||
|
||||
void update();
|
||||
void push(const std::string&);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
extern anm2ed::imgui::Toasts toasts;
|
||||
Reference in new issue
Block a user