diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-18 19:56:58 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-18 19:56:58 +0100 |
commit | 41d0c68c9fadea552002613f0f62433c3858d0a2 (patch) | |
tree | 32fe3c8615c0226e38ae3faea52412a7ada8d0b8 /yage/render/sprite.h | |
parent | 5c4c0ca30911b5129b32142b430bb6be1baf0e47 (diff) | |
download | YAGE-41d0c68c9fadea552002613f0f62433c3858d0a2.tar.gz YAGE-41d0c68c9fadea552002613f0f62433c3858d0a2.zip |
Deleting and cleaning up repository
Diffstat (limited to 'yage/render/sprite.h')
-rw-r--r-- | yage/render/sprite.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/yage/render/sprite.h b/yage/render/sprite.h deleted file mode 100644 index 51821be5..00000000 --- a/yage/render/sprite.h +++ /dev/null @@ -1,49 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: sprite.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#ifndef SPRITE_H -#define SPRITE_H - -#include "../data/texture.h" - -#include <glad/glad.h> - -#include <string> - -namespace yage -{ - -/** @deprecated Use SpriteBatch instead - */ -class Sprite -{ -private: - float x_; - float y_; - float width_; - float height_; - GLuint vbo_id_ = 0; - Texture texture_; - -public: - Sprite() = default; - Sprite(const Sprite &) = delete; - Sprite(Sprite &&) = delete; - ~Sprite(); - - Sprite &operator=(const Sprite &) = delete; - Sprite &operator=(Sprite &&) = delete; - - void init(float x, float y, float width, float height, - const std::string &texture_path); - void draw(); -}; - -} // namespace yage - -#endif |