basic textures
This commit is contained in:
@@ -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
19
inc/engine/textures.hpp
Normal 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
|
||||
Reference in New Issue
Block a user