Catchea
Topographic Data Browser
resource_manager.h
Go to the documentation of this file.
1 
7 #ifndef CATCHEA_RESOURCE_MANAGER_H
8 #define CATCHEA_RESOURCE_MANAGER_H
9 
10 #include <cstdlib>
11 
12 #include <GL/gl.h>
13 
19 struct Texture {
20  GLuint texture_id;
21  int width, height;
22 };
23 
30 Texture rm_load_texture(const char* filename);
31 
42 Texture rm_texture_from_memory(const void* data, int width, int height, int channels_count);
43 
49 void rm_free_texture(Texture tex);
50 
51 
52 #endif //CATCHEA_RESOURCE_MANAGER_H
void rm_free_texture(Texture tex)
Definition: resource_manager.cpp:93
Texture rm_load_texture(const char *filename)
Definition: resource_manager.cpp:12
Texture rm_texture_from_memory(const void *data, int width, int height, int channels_count)
Definition: resource_manager.cpp:55
Represents texture with dimensions and id in OpenGL.
Definition: resource_manager.h:19