staging some future refactoring, .h -> hpp, fix for rendering w/ audio
This commit is contained in:
28
src/resources.hpp
Normal file
28
src/resources.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <imgui/imgui.h>
|
||||
|
||||
#include "audio.h"
|
||||
#include "font.h"
|
||||
#include "icon.h"
|
||||
#include "shader.h"
|
||||
#include "texture.h"
|
||||
|
||||
namespace anm2ed
|
||||
{
|
||||
class Resources
|
||||
{
|
||||
public:
|
||||
resource::Font fonts[resource::font::COUNT]{};
|
||||
resource::Texture icons[resource::icon::COUNT]{};
|
||||
resource::Shader shaders[resource::shader::COUNT]{};
|
||||
resource::Audio music{};
|
||||
|
||||
Resources();
|
||||
resource::Audio& music_track();
|
||||
resource::Audio* music_track_if_loaded();
|
||||
|
||||
private:
|
||||
bool isMusicLoaded{false};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user