2 #include "oxygine-include.h" 5 #include "CreateResourceContext.h" 17 std::string base_path;
19 spNativeTexture alpha;
20 std::string alpha_path;
27 void addAtlas(TextureFormat tf,
const std::string& base,
const std::string& alpha,
int w,
int h);
29 const atlas& getAtlas(
int i)
const {
return _atlasses[i];}
30 int getNum()
const {
return (
int)_atlasses.size(); }
33 void _restore(Restorable* r,
void* user);
35 void _load(LoadResourcesContext*)
override;
36 void _unload()
override;
39 ResAnim* createEmpty(
const XmlWalker& walker, CreateResourceContext& context);
40 static void init_resAnim(ResAnim* rs,
const std::string& file, pugi::xml_node node);
47 void loadBase(pugi::xml_node node);
49 std::vector<unsigned char> _hitTestBuffer;
51 typedef std::vector<atlas> atlasses;
55 typedef void(*load_texture_hook)(
const std::string& file, spNativeTexture nt,
bool linearFilter,
bool clamp2edge, LoadResourcesContext* load_context);
56 void set_load_texture_hook(load_texture_hook);
57 void load_texture_internal(
const std::string& file, spNativeTexture nt,
bool linearFilter,
bool clamp2edge, LoadResourcesContext* load_context);
–oxgl-end–!
Definition: Actor.h:14
Definition: Resource.h:10
Definition: ResAtlas.h:14
Definition: CreateResourceContext.h:60