Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions
Texture Class Reference

#include <model.hpp>

Public Member Functions

 Texture (const std::string &filepath, const aiTextureType &type)
 
GLuint getID () const
 
std::string getType () const
 

Constructor & Destructor Documentation

◆ Texture()

Texture::Texture ( const std::string &  filepath,
const aiTextureType &  type 
)

Load a texture from a filepath.

Parameters
filepathis the file path to the texture
typespecifies the type of texture to load. Currently only aiTextureType_SPECULAR and aiTextureType_DIFFUSE are implemented.

Member Function Documentation

◆ getID()

unsigned int Texture::getID ( ) const
Returns
the texture's ID to be passed into OpenGL functions

◆ getType()

std::string Texture::getType ( ) const

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