mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-04-21 21:51:22 +02:00
Texture uml diagram.
This commit is contained in:
parent
f2d1e01b11
commit
ec64037fd2
@ -1,41 +1,41 @@
|
||||
|
||||
|
||||
class Texture
|
||||
public:
|
||||
Color get_color_mod() const;
|
||||
void set_color_mod(const Color &color);
|
||||
|
||||
SDL_BlendMode get_blend_mode() const;
|
||||
void set_blend_mode(const SDL_BlendMode blend_mode);
|
||||
|
||||
SDL_ScaleMode get_texture_scale_mode() const;
|
||||
void set_texture_scale_mode(const SDL_ScaleMode scale_mode);
|
||||
|
||||
Image *get_image();
|
||||
void set_image(Image *image);
|
||||
|
||||
int get_width() const;
|
||||
int get_height() const;
|
||||
Uint32 get_format() const;
|
||||
int get_access() const;
|
||||
|
||||
void create(const int access, const int w, const int h);
|
||||
void refresh();
|
||||
void free();
|
||||
|
||||
SDL_Texture *get_texture();
|
||||
SDL_Texture *get_texture() const;
|
||||
|
||||
bool is_render_target();
|
||||
|
||||
Texture();
|
||||
Texture(Image *image);
|
||||
virtual ~Texture();
|
||||
|
||||
private:
|
||||
Image *_image;
|
||||
SDL_Texture *_texture;
|
||||
|
||||
|---------------------------------------------------------------------------------------|
|
||||
| class Texture |
|
||||
|---------------------------------------------------------------------------------------|
|
||||
| + Color get_color_mod() const; |
|
||||
| + void set_color_mod(const Color &color); |
|
||||
| |
|
||||
| + SDL_BlendMode get_blend_mode() const; |
|
||||
| + void set_blend_mode(const SDL_BlendMode blend_mode); |
|
||||
| |
|
||||
| + SDL_ScaleMode get_texture_scale_mode() const; |
|
||||
| + void set_texture_scale_mode(const SDL_ScaleMode scale_mode); |
|
||||
| |
|
||||
| + Image *get_image(); |
|
||||
| + void set_image(Image *image); |
|
||||
| |
|
||||
| + int get_width() const; |
|
||||
| + int get_height() const; |
|
||||
| + Uint32 get_format() const; |
|
||||
| + int get_access() const; |
|
||||
| |
|
||||
| + void create(const int access, const int w, const int h); |
|
||||
| + void refresh(); |
|
||||
| + void free(); |
|
||||
| |
|
||||
| + SDL_Texture *get_texture(); |
|
||||
| + SDL_Texture *get_texture() const; |
|
||||
| |
|
||||
| + bool is_render_target(); |
|
||||
| |
|
||||
| + Texture(); |
|
||||
| + Texture(Image *image); |
|
||||
| + virtual ~Texture(); |
|
||||
| |
|
||||
| - Image *_image; |
|
||||
| - SDL_Texture *_texture; |
|
||||
|---------------------------------------------------------------------------------------|
|
||||
|
||||
|
||||
#include "texture.h"
|
||||
|
Loading…
Reference in New Issue
Block a user