mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Added some notes to image classes.
This commit is contained in:
parent
393650ad6d
commit
7c71819b60
@ -7,6 +7,12 @@
|
||||
#include "core/vector.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 {
|
||||
public:
|
||||
void create(const Uint32 flags, const int width, const int height);
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include "texture.h"
|
||||
#include "core/color.h"
|
||||
|
||||
//remove sdl dependency
|
||||
|
||||
class Sprite {
|
||||
public:
|
||||
Rect2 get_texture_clip_rect() const;
|
||||
|
@ -4,6 +4,12 @@
|
||||
#include "image.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 {
|
||||
public:
|
||||
Color get_color_mod() const;
|
||||
|
Loading…
Reference in New Issue
Block a user