basic textures

This commit is contained in:
2025-11-25 16:15:40 +00:00
parent 47a10623a1
commit bb7a3bafd2
17 changed files with 12154 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
#include "engine/buffers.hpp"
#include "engine/shaders.hpp"
#include "engine/camera.hpp"
#include "engine/textures.hpp"
// OpenGL Context Class
class OpenGLContext {

19
inc/engine/textures.hpp Normal file
View File

@@ -0,0 +1,19 @@
#ifndef TEXTURES_HPP
#define TEXTURES_HPP
// Includes
#include <SDL3/SDL_opengl.h>
// Texture Class
class Texture {
public:
Texture(const char* filePath);
~Texture();
void bind(GLenum textureUnit) const;
private:
GLuint textureID;
};
#endif