Anvil Engine
Loading...
Searching...
No Matches
AMeshLoader.cpp File Reference
#include "AMeshLoader.h"
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <fstream>
#include <glad/glad.h>
#include <iostream>
#include <stb_image.h>
#include <string>
#include <vector>
#include <filesystem>

Macros

#define STB_IMAGE_IMPLEMENTATION

Functions

uint32_t LoadTextureAuto (const std::string &texturePath)
 Loads a texture from file and creates an OpenGL texture object.

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Function Documentation

◆ LoadTextureAuto()

uint32_t LoadTextureAuto ( const std::string & texturePath)

Loads a texture from file and creates an OpenGL texture object.

Parameters
texturePathPath to the texture file
Returns
OpenGL texture ID (0 if loading failed)