Added some notes to image classes.

This commit is contained in:
Relintai 2021-11-13 12:39:14 +01:00
parent 393650ad6d
commit 7c71819b60
3 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,12 @@
#include "core/vector.h" #include "core/vector.h"
#include <SDL.h> #include <SDL.h>
//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 { class Image {
public: public:
void create(const Uint32 flags, const int width, const int height); void create(const Uint32 flags, const int width, const int height);

View File

@ -7,6 +7,8 @@
#include "texture.h" #include "texture.h"
#include "core/color.h" #include "core/color.h"
//remove sdl dependency
class Sprite { class Sprite {
public: public:
Rect2 get_texture_clip_rect() const; Rect2 get_texture_clip_rect() const;

View File

@ -4,6 +4,12 @@
#include "image.h" #include "image.h"
#include <SDL.h> #include <SDL.h>
//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 { class Texture {
public: public:
Color get_color_mod() const; Color get_color_mod() const;