From 7c71819b6088dfd27b5e8641ebf785b889c679b8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 13 Nov 2021 12:39:14 +0100 Subject: [PATCH] Added some notes to image classes. --- core/image/image.h | 6 ++++++ core/image/sprite.h | 2 ++ core/image/texture.h | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/core/image/image.h b/core/image/image.h index 5b2c782..60f933b 100644 --- a/core/image/image.h +++ b/core/image/image.h @@ -7,6 +7,12 @@ #include "core/vector.h" #include +//add an image loader registratin api -> so you can just pass a path in a load method and it will try to find a suitable loader. +//remove sdl dependency +//have everything implemented here +//should have resizing and saving api -> thumbnail generation etc +//Should be inherited from Reference + class Image { public: void create(const Uint32 flags, const int width, const int height); diff --git a/core/image/sprite.h b/core/image/sprite.h index 2b4e153..bd81d7b 100644 --- a/core/image/sprite.h +++ b/core/image/sprite.h @@ -7,6 +7,8 @@ #include "texture.h" #include "core/color.h" +//remove sdl dependency + class Sprite { public: Rect2 get_texture_clip_rect() const; diff --git a/core/image/texture.h b/core/image/texture.h index 1f94253..058c4e5 100644 --- a/core/image/texture.h +++ b/core/image/texture.h @@ -4,6 +4,12 @@ #include "image.h" #include +//remove sdl dependency +//should be allocated with a selected renderer +//could have an RID in them, and the renderer could look them up +//should have a similar inheritance tree like godot's +//Should be inherited from Reference + class Texture { public: Color get_color_mod() const;