libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::SpriteAtlas::Sprite Struct Reference

Information about a specific image in the spritesheet. More...

#include <donut/graphics/SpriteAtlas.hpp>

Public Attributes

vec2 position {}
 Position of the image in the texture atlas, in texels. More...
 
vec2 size {}
 Size of the image in the texture atlas, in texels. More...
 
Flip flip = NO_FLIP
 Flags that describe how the sprite should be flipped when rendered. More...
 

Detailed Description

Information about a specific image in the spritesheet.

Member Data Documentation

◆ position

vec2 donut::graphics::SpriteAtlas::Sprite::position {}

Position of the image in the texture atlas, in texels.

◆ size

vec2 donut::graphics::SpriteAtlas::Sprite::size {}

Size of the image in the texture atlas, in texels.

◆ flip

Flip donut::graphics::SpriteAtlas::Sprite::flip = NO_FLIP

Flags that describe how the sprite should be flipped when rendered.


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