| 299 | } |
| 300 | |
| 301 | inline void Dispose() { |
| 302 | if(this->IsValid()) { |
| 303 | glDeleteTextures(1, &this->gl_tex); |
| 304 | this->gl_tex = 0; |
| 305 | this->width = 0; |
| 306 | this->height = 0; |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | inline void LoadFrom(void *img_data, const size_t img_data_size, const u32 custom_width, const u32 custom_height) { |
| 311 | int data_width; |