GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::SpriteAtlas::Sprite Struct Reference

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

#include <GREM/graphics/SpriteAtlas.hpp>

Public Attributes

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

Detailed Description

Information about a specific image in the spritesheet.

Member Data Documentation

◆ position

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

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

◆ size

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

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

◆ flip

SpriteOptions::Flip grem::graphics::SpriteAtlas::Sprite::flip = SpriteOptions::NO_FLIP

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


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