Files
anm2ed/src/resources.h

20 lines
455 B
C++

#pragma once
#include "PACKED.h"
#include "texture.h"
#include "shader.h"
#define RESOURCES_TEXTURES_FREE_INFO "Freed texture resources"
struct Resources
{
GLuint shaders[SHADER_COUNT];
Texture atlas;
std::map<s32, Texture> textures;
};
void resources_init(Resources* self);
void resources_texture_init(Resources* self, const std::string& path, s32 id);
void resources_free(Resources* self);
void resources_textures_free(Resources* self);