aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_graphic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/je_graphic.h')
-rw-r--r--src/libjin/Graphics/je_graphic.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/libjin/Graphics/je_graphic.h b/src/libjin/Graphics/je_graphic.h
index 2ed028d..69fa109 100644
--- a/src/libjin/Graphics/je_graphic.h
+++ b/src/libjin/Graphics/je_graphic.h
@@ -14,12 +14,6 @@ namespace JinEngine
namespace Graphics
{
- //
- // Graphic
- // |- GraphicSingle
- // |- GraphicBatch
- //
-
///
/// Class inherites Graphic doesn't keep any state such as origin, scale and other properties.
///
@@ -63,6 +57,16 @@ namespace JinEngine
///
void setFilter(GLint min, GLint max);
+ ///
+ /// Render graphic single with given coordinates.
+ ///
+ void render(int x, int y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0);
+
+ ///
+ /// Render part of graphic single with given coordinates.
+ ///
+ void render(const Math::Quad& slice, int x, int y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0);
+
protected:
JinEngine::Math::Vector2<uint> mSize;