//############################################################################# //# texture.h //############################################################################# //# Written by Colton Staiduhar //# Date Created: 02/05/2025 //# Last Modification: 02/05/2025 //############################################################################# //# This file serves as simple, yet functional example of how to use the //# include directory of this project //############################################################################# //# This header exposses the LoadTexture function of this project. //# Usage: //# unsigned int textureID = LoadTexture(fileURL); //# //# Where textureID is the returned OpenGL texture ID that can be bounded //# //############################################################################# #ifndef TEXTURES_H #define TEXTRUES_H /** * Loads a texture for use in OpenGL with STB * * Usage: * unsigned int textureID = LoadTexture(fileURL) * * textureID - the generated OpenGL Texture ID * * Bind texture with * glBindTexture(GL_TEXTURE_2D, textureID); */ unsigned int LoadTexture(char *location); #endif