malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Graphics
Sprites
Sprite.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
#ifndef MALENA_SPRITE_H
5
#define MALENA_SPRITE_H
6
7
#pragma once
8
9
#include <
Malena/Core/malena_export.h
>
10
#include <
Malena/Graphics/Base/Graphic.h
>
11
#include <
Malena/Traits/Base/Customizable.h
>
12
13
namespace
ml
14
{
46
class
MALENA_API
Sprite
:
public
Graphic
<sf::Sprite>
47
{
48
public
:
49
using
Graphic::Graphic
;
50
#ifdef _WIN32
51
~Sprite
()
override
;
52
#endif
53
};
54
64
template
<
typename
MANIFEST>
65
class
SpriteWith
:
public
Sprite
,
public
Customizable
<MANIFEST> {};
// TODO: rename to SpriteWith
66
67
}
// namespace ml
68
69
#endif
// MALENA_SPRITE_H
Customizable.h
Graphic.h
ml::Customizable< MANIFEST >::Customizable
Customizable()=default
ml::Graphic::Graphic
Graphic()
ml::Sprite
A framework-integrated sprite.
Definition
Sprite.h:47
ml::Sprite::Graphic
Graphic()
ml::SpriteWith
Sprite with an attached manifest.
Definition
Sprite.h:65
malena_export.h
MALENA_API
#define MALENA_API
Definition
malena_export.h:18
ml
Definition
Component.h:22