Chess Engine
A Chess Engine project written in C++.
Loading...
Searching...
No Matches
ResourceManager Class Reference

A class that provides a brigde between the program and its resources. More...

#include <resource_manager.hpp>

Static Public Member Functions

static Resource getResource (std::string filename)
 retrieves the data of the given file
static void loadResources ()
 connects resource filename strings to the correspondent data
static void init ()

Detailed Description

A class that provides a brigde between the program and its resources.

it manages file (image, sound) dependencies from resources.hpp resources.hpp is a packed bunch of files from resources/ folder to build resources.hpp there is a shell script pack_resources.sh

Member Function Documentation

◆ getResource()

Resource ResourceManager::getResource ( std::string filename)
static

retrieves the data of the given file

Parameters
filenamethe filename
Returns
pair of pointer to the first element to array and array's length

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