coastline 0.0.4
Loading...
Searching...
No Matches
coastline::PaintSprite Struct Reference

A picture of the paint shop, Sprite of the console. More...

#include <paintshop.h>

Collaboration diagram for coastline::PaintSprite:

Public Attributes

std::vector< u8 > pixels
u8 bitsPerTexel = 0
s32 width = 0
s32 height = 0
s32 originX = 0
s32 originY = 0
s32 drawWidth = 0
s32 drawHeight = 0
u8 style = 0
std::string asset
std::unique_ptr< RenderTexture > texture

Detailed Description

A picture of the paint shop, Sprite of the console.

Member Data Documentation

◆ pixels

std::vector<u8> coastline::PaintSprite::pixels

The texels as the cartridge has them, the bottom row first.

◆ bitsPerTexel

u8 coastline::PaintSprite::bitsPerTexel = 0

The bits of a texel: 4, 8, or 16.

◆ width

s32 coastline::PaintSprite::width = 0

The width in texels.

◆ height

s32 coastline::PaintSprite::height = 0

The height in texels.

◆ originX

s32 coastline::PaintSprite::originX = 0

The x the picture is drawn from.

◆ originY

s32 coastline::PaintSprite::originY = 0

The y the picture is drawn from.

◆ drawWidth

s32 coastline::PaintSprite::drawWidth = 0

The width it is drawn at, negative to flip it.

◆ drawHeight

s32 coastline::PaintSprite::drawHeight = 0

The height it is drawn at.

◆ style

u8 coastline::PaintSprite::style = 0

The style of a tool, or 99 for a picture drawn in a colour.

◆ asset

std::string coastline::PaintSprite::asset

The asset of the cartridge the texels come from.

◆ texture

std::unique_ptr<RenderTexture> coastline::PaintSprite::texture

The texels upright, made at the first draw.


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