sent from android

This commit is contained in:
2025-07-30 13:14:22 +01:00
parent 15aa9d54ea
commit a03c7c85b8
25 changed files with 2243 additions and 203 deletions

24
include/texture.hpp Normal file
View File

@@ -0,0 +1,24 @@
#ifndef TEXTURE_HPP
#define TEXTURE_HPP
#define GL_GLEXT_PROTOTYPES
// Includes
#include <SDL3_image/SDL_image.h>
#include <SDL3/SDL_opengl.h>
#include <iostream>
// Functions
void flip_surface(SDL_Surface* surface);
// Classes
class Texture {
public:
unsigned int ID;
Texture(const char* file_path);
~Texture();
void bind() const;
void bind(unsigned int unit) const;
void unbind() const;
};
#endif