Anvil Engine
Loading...
Searching...
No Matches
ATexture Class Reference

#include <ATexture.h>

Public Member Functions

 ATexture (const char *path)
void Bind (unsigned int unit=0)

Public Attributes

unsigned int ID
std::string type
std::string path

Constructor & Destructor Documentation

◆ ATexture()

ATexture::ATexture ( const char * path)
inline

Constructor for ATexture class that loads an image from a file path and creates an OpenGL texture

Parameters
pathThe file path to the image texture

Member Function Documentation

◆ Bind()

void ATexture::Bind ( unsigned int unit = 0)
inline

Binds the texture to a specific texture unit for rendering

Parameters
unitThe texture unit to bind to (default is 0)

Member Data Documentation

◆ ID

unsigned int ATexture::ID

◆ path

std::string ATexture::path

◆ type

std::string ATexture::type

The documentation for this class was generated from the following file: