GearLoader 1.1.0
Mod loader for GGXXACPR
Loading...
Searching...
No Matches
ggxxacpr::Scale Struct Reference

Render scale for sprites. More...

#include <ggxxacpr.hpp>

Public Member Functions

float x ()
float y ()

Data Fields

int16_t _rawX = -1
int16_t _rawY = -1

Detailed Description

Render scale for sprites.

The raw values are stored as tenths of a percent (i.e. 1000 = 1.0x scale). When the raw scales values are negative, they are ignored and no resize takes affect. If _rawX is non negative and _rawY is negative, the _rawX scale value will apply to both axes. However, this is not true vice-versa for _rawY values.

Member Function Documentation

◆ x()

float ggxxacpr::Scale::x ( )
inline
581 {
582 return (_rawX < 0 ? 1.0F : _rawX) / 1000.0F;
583 };

◆ y()

float ggxxacpr::Scale::y ( )
inline
584 {
585 if (_rawY < 0 && _rawX < 0) return 1.0F;
586 return (_rawY < 0 ? _rawX : _rawY) / 1000.0F;
587 };

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