mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 05:46:48 +08:00

~ 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>
26 lines
499 B
C++
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;
|
|
};
|
|
}; |