Base Template

Supports MacOS (ARM)
Windows is Untested
Linux is Untested
This commit is contained in:
Colton Staiduhar
2026-02-05 15:14:03 -05:00
parent d55a0dff9a
commit 96b71da74b
8 changed files with 610 additions and 0 deletions

37
include/texture.h Normal file
View File

@@ -0,0 +1,37 @@
//#############################################################################
//# 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