Files
GlutSTBMiniAudio-Template/include/texture.h
Colton Staiduhar 21c67236dd Windows Support
2026-02-11 21:14:40 -05:00

37 lines
1.2 KiB
C

//#############################################################################
//# 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 1
/**
* 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