Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
ResourceManager Class Reference

#include <ResourceManager.h>

Static Public Member Functions

static void initialize (QOpenGLFunctions_4_5_Core *funcs)
 
static void loadPrimitives ()
 
static ShaderloadShader (const std::string &vShaderPath, const std::string &fShaderPath, const std::string &name)
 
static MeshloadMesh (const std::vector< Vertex > &verts, const std::vector< unsigned int > &idx, const std::string &name)
 
static MeshloadMeshFromOBJ (const std::string &path, const std::string &name)
 
static ShadergetShader (const std::string &name)
 
static std::string getShaderName (const Shader *shader)
 
static MeshgetMesh (const std::string &name)
 

Detailed Description

Definition at line 7 of file ResourceManager.h.

Member Function Documentation

◆ getMesh()

Mesh * ResourceManager::getMesh ( const std::string &  name)
static

Definition at line 49 of file ResourceManager.cpp.

Here is the caller graph for this function:

◆ getShader()

Shader * ResourceManager::getShader ( const std::string &  name)
static

Definition at line 33 of file ResourceManager.cpp.

Here is the caller graph for this function:

◆ getShaderName()

std::string ResourceManager::getShaderName ( const Shader shader)
static

Definition at line 42 of file ResourceManager.cpp.

Here is the caller graph for this function:

◆ initialize()

void ResourceManager::initialize ( QOpenGLFunctions_4_5_Core *  funcs)
static

Definition at line 9 of file ResourceManager.cpp.

Here is the caller graph for this function:

◆ loadMesh()

Mesh * ResourceManager::loadMesh ( const std::vector< Vertex > &  verts,
const std::vector< unsigned int > &  idx,
const std::string &  name 
)
static

Definition at line 18 of file ResourceManager.cpp.

Here is the caller graph for this function:

◆ loadMeshFromOBJ()

Mesh * ResourceManager::loadMeshFromOBJ ( const std::string &  path,
const std::string &  name 
)
static

Definition at line 23 of file ResourceManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadPrimitives()

void ResourceManager::loadPrimitives ( )
static

Definition at line 120 of file ResourceManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadShader()

Shader * ResourceManager::loadShader ( const std::string &  vShaderPath,
const std::string &  fShaderPath,
const std::string &  name 
)
static

Definition at line 13 of file ResourceManager.cpp.

Here is the caller graph for this function:

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