26 #include "FileSystem.h" 28 #include "DebugUtilities.h" 40 FileWrapper(
const Diligent::Char *Path,
41 EFileAccessMode Access = EFileAccessMode::Read) :
44 FileOpenAttribs OpenAttribs(Path, Access);
53 void Open(
const FileOpenAttribs& OpenAttribs)
55 VERIFY( !m_pFile,
"Another file already attached" );
57 m_pFile = FileSystem::OpenFile( OpenAttribs );
62 CFile *pFile = m_pFile;
67 void Attach(CFile *pFile)
69 VERIFY(!m_pFile,
"Another file already attached");
77 FileSystem::ReleaseFile(m_pFile);
81 operator CFile*(){
return m_pFile;}
82 CFile* operator->(){
return m_pFile;}
85 FileWrapper(
const FileWrapper&);
86 const FileWrapper& operator=(
const FileWrapper&);
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34