aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/sprite.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-25 13:54:09 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-25 13:54:09 +0000
commitf949692714e72a0e2d45ebb6a5d698424ab71dee (patch)
treecfab638d8c4d35c297e981773cfee1a9af3490ee /yage/core/sprite.h
parent022a4bdd81332ce67d799be6a06afb42ae45ac2e (diff)
downloadYAGE-f949692714e72a0e2d45ebb6a5d698424ab71dee.tar.gz
YAGE-f949692714e72a0e2d45ebb6a5d698424ab71dee.zip
[Broken] Reorganising and fixing.
Diffstat (limited to 'yage/core/sprite.h')
-rw-r--r--yage/core/sprite.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/yage/core/sprite.h b/yage/core/sprite.h
deleted file mode 100644
index 852f4f28..00000000
--- a/yage/core/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 "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