Files
anm2ed/src/resources.h
T
shweet 40f6b554b5 Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
2026-11-22 17:27:24 -05:00

27 lines
465 B
C++

#pragma once
#include <imgui/imgui.h>
#include "audio.h"
#include "font.h"
#include "icon.h"
#include "shader.h"
#include "texture.h"
class Resources
{
public:
Font fonts[FONT_COUNT]{};
Image icons[ICON_COUNT]{};
ShaderProgram shaders[SHADER_COUNT]{};
AudioData music = {};
Resources();
GLuint icon_id_get(int);
AudioData& music_track();
AudioData* music_track_if_loaded();
private:
bool isMusicLoaded = false;
};