Oxygine
1
2g game engine
oxygine
src
res
ResBuffer.h
1
#pragma once
2
#include "oxygine-include.h"
3
#include "Resource.h"
4
#include "core/file.h"
5
#include <vector>
6
7
namespace
oxygine
8
{
9
class
ResBuffer
:
public
Resource
10
{
11
INHERITED(
Resource
);
12
public
:
13
static
Resource
* create(
CreateResourceContext
&);
14
15
ResBuffer
();
16
~
ResBuffer
();
17
18
void
init(
const
char
* file);
19
20
const
file::buffer
& getBuffer()
const
{
return
_buffer;}
21
22
private
:
23
void
_load(
LoadResourcesContext
*)
override
;
24
void
_unload()
override
;
25
26
file::buffer
_buffer;
27
std::string _path;
28
};
29
}
oxygine::LoadResourcesContext
Definition:
CreateResourceContext.h:94
oxygine
–oxgl-end–!
Definition:
Actor.h:14
oxygine::file::buffer
Definition:
file.h:18
oxygine::Resource
Definition:
Resource.h:10
oxygine::CreateResourceContext
Definition:
CreateResourceContext.h:60
oxygine::ResBuffer
Definition:
ResBuffer.h:9
Generated on Tue Feb 13 2018 05:01:17 for Oxygine by
1.8.14