OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
Engine::Graphics::Sprite Struct Reference

Structure de donnée contenant de quoi afficher un sprite à l'écran. More...

#include <sprite.hpp>

Inheritance diagram for Engine::Graphics::Sprite:
Engine::ECS::Component

Public Attributes

Graphics::Material material
 Le material utilisé pour le rendu du sprite (textures + shader)
glm::vec2 size = {1.0f, 1.0f}
 Taille du sprite à afficher.
Public Attributes inherited from Engine::ECS::Component
bool enabled = true

Additional Inherited Members

Public Member Functions inherited from Engine::ECS::Component
 Component ()=default
void SetEntity (Entity e)
 Attache l'entité au component.
EntityGetEntity () const
 Renvoie l'entité attachée.
RegistryGetRegistry () const
 Renvoie le registre actuel.
Scene::SceneGetScene () const
 Renvoie la scène en cours.
AppGetApp () const
 Renvoie l'instance d'application.

Detailed Description

Structure de donnée contenant de quoi afficher un sprite à l'écran.

Member Data Documentation

◆ material

Graphics::Material Engine::Graphics::Sprite::material

Le material utilisé pour le rendu du sprite (textures + shader)

◆ size

glm::vec2 Engine::Graphics::Sprite::size = {1.0f, 1.0f}

Taille du sprite à afficher.


The documentation for this struct was generated from the following file: