2017-12-25 23:49:48 +00:00
|
|
|
#ifndef SPRITE_HPP_INCLUDED
|
|
|
|
#define SPRITE_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include "../JavaClass/Object.hpp"
|
|
|
|
#include "../JavaClass/Class.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
2018-03-18 14:38:29 +00:00
|
|
|
namespace Internal
|
2017-12-25 23:49:48 +00:00
|
|
|
{
|
2018-03-18 14:38:29 +00:00
|
|
|
class Sprite : public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Sprite(const void* Obj);
|
2018-12-27 18:17:09 +00:00
|
|
|
|
|
|
|
Sprite() = default;
|
|
|
|
Sprite(Sprite&& Obj) = default;
|
|
|
|
Sprite(const Sprite& Obj) = default;
|
|
|
|
Sprite& operator=(Sprite&& Obj) = default;
|
|
|
|
Sprite& operator=(const Sprite& Obj) = default;
|
|
|
|
|
2018-03-18 14:38:29 +00:00
|
|
|
static Class GetClass();
|
2017-12-25 23:49:48 +00:00
|
|
|
|
2018-03-18 14:38:29 +00:00
|
|
|
std::int32_t GetHeight() const;
|
|
|
|
std::vector<std::int32_t> GetPixels() const;
|
|
|
|
std::int32_t GetWidth() const;
|
2017-12-25 23:49:48 +00:00
|
|
|
|
2018-03-18 14:38:29 +00:00
|
|
|
};
|
|
|
|
}
|
2017-12-25 23:49:48 +00:00
|
|
|
|
|
|
|
#endif // SPRITE_HPP_INCLUDED
|