fix(texture): move stb_image into texture.cpp file

This commit is contained in:
2025-11-20 06:53:22 +01:00
parent 1c78ff27e7
commit 0a7b5c9254
2 changed files with 4 additions and 4 deletions

View File

@@ -3,8 +3,6 @@
#include <GL/glew.h>
#include <string>
#include <filesystem>
#include <stb_image.h>
class Texture
{
@@ -13,11 +11,9 @@ private:
public:
Texture(const std::string& path);
~Texture();
void bind(GLenum textureUnit) const;
unsigned int getID() const;
};

View File

@@ -1,5 +1,9 @@
#include "texture.hpp"
#include <iostream>
#include <filesystem>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
namespace fs = std::filesystem;