linux-wallpaperengine/src/WallpaperEngine/Assets/CDirectory.h
Alexis Maiquez 291b7e364a - removed/commented out most irrlicht-specific code
~ written close to equivalent versions in OpenGL code using GLM and GLFW
~ written replacements for texture and package loading to not use irrlicht anymore
~ updated shader compiler as we now don't need to replace attributes anymore
+ added support for texture flags in the texture header (as they're needed for opengl to get proper information)

TODO: REWRITE VIDEO PLAYER SUPPORT AS THIS UPDATE EFFECTIVELY BREAKS IT

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-08-31 01:14:08 +02:00

26 lines
499 B
C++

//
// Created by almamu on 8/8/21.
//
#pragma once
#include <string>
#include <stdexcept>
#include <map>
#include "CContainer.h"
#include "CFileEntry.h"
namespace WallpaperEngine::Assets
{
class CDirectory : public CContainer
{
public:
CDirectory (std::string basepath);
~CDirectory ();
void* readFile (std::string filename, uint32_t* length) override;
private:
std::string m_basepath;
std::map <std::string, CFileEntry> m_cache;
};
};