From 62de63a0d26ece5c0dc2cd48c0a41d35de1e38d4 Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 25 Nov 2022 17:36:37 -0500 Subject: cleanup code --- src/texture.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/texture.cpp') diff --git a/src/texture.cpp b/src/texture.cpp index 0697e28..6322ce7 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -1,10 +1,15 @@ -#include "texture.hpp" -#include +//external libs #include "glad/glad.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" +// project headers +#include "texture.hpp" + +// std libs +#include + Texture::Texture(const char* texture_path) { glGenTextures(1, &id); @@ -15,7 +20,6 @@ Texture::Texture(const char* texture_path) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); int width, height, nrChannels; - //stbi_set_flip_vertically_on_load(true); unsigned char *data = stbi_load(texture_path, &width, &height, &nrChannels, 0); if (data) { -- cgit v1.2.3