Oxygine  1
2g game engine
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 }
Definition: CreateResourceContext.h:94
–oxgl-end–!
Definition: Actor.h:14
Definition: file.h:18
Definition: Resource.h:10
Definition: CreateResourceContext.h:60
Definition: ResBuffer.h:9