Oxygine  1
2g game engine
SingleResAnim.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "ResAnim.h"
4 
5 namespace oxygine
6 {
7  class SingleResAnim: public ResAnim
8  {
9  public:
10  void init(const std::string& file, int columns = 1, int rows = 1, float scaleFactor = 1.0f);
11  void init(Image* original, int columns = 1, int rows = 1, float scaleFactor = 1.0f) override;
12 
13  spNativeTexture getTexture() const;
14 
15  protected:
16  std::vector<unsigned char> _data;
17  spNativeTexture _texture;
18  };
19 }
Definition: Image.h:23
Definition: SingleResAnim.h:7
–oxgl-end–!
Definition: Actor.h:14
Definition: ResAnim.h:13