#include <olcPixelGameEngine.h>
|
| Sprite () |
|
| Sprite (const std::string &sImageFile, olc::ResourcePack *pack=nullptr) |
|
| Sprite (int32_t w, int32_t h) |
|
| Sprite (const olc::Sprite &)=delete |
|
| ~Sprite () |
|
olc::rcode | LoadFromFile (const std::string &sImageFile, olc::ResourcePack *pack=nullptr) |
|
void | SetSampleMode (olc::Sprite::Mode mode=olc::Sprite::Mode::NORMAL) |
|
Pixel | GetPixel (int32_t x, int32_t y) const |
|
bool | SetPixel (int32_t x, int32_t y, Pixel p) |
|
Pixel | GetPixel (const olc::vi2d &a) const |
|
bool | SetPixel (const olc::vi2d &a, Pixel p) |
|
Pixel | Sample (float x, float y) const |
|
Pixel | Sample (const olc::vf2d &uv) const |
|
Pixel | SampleBL (float u, float v) const |
|
Pixel | SampleBL (const olc::vf2d &uv) const |
|
Pixel * | GetData () |
|
olc::Sprite * | Duplicate () |
|
olc::Sprite * | Duplicate (const olc::vi2d &vPos, const olc::vi2d &vSize) |
|
olc::vi2d | Size () const |
|
void | SetSize (int32_t w, int32_t h) |
|
◆ Flip
Enumerator |
---|
NONE | |
HORIZ | |
VERT | |
◆ Mode
Enumerator |
---|
NORMAL | |
PERIODIC | |
CLAMP | |
◆ Sprite() [1/4]
◆ Sprite() [2/4]
olc::Sprite::Sprite |
( |
const std::string & | sImageFile, |
|
|
olc::ResourcePack * | pack = nullptr ) |
◆ Sprite() [3/4]
olc::Sprite::Sprite |
( |
int32_t | w, |
|
|
int32_t | h ) |
◆ Sprite() [4/4]
◆ ~Sprite()
◆ Duplicate() [1/2]
◆ Duplicate() [2/2]
◆ GetData()
Pixel * olc::Sprite::GetData |
( |
| ) |
|
◆ GetPixel() [1/2]
◆ GetPixel() [2/2]
Pixel olc::Sprite::GetPixel |
( |
int32_t | x, |
|
|
int32_t | y ) const |
◆ LoadFromFile()
◆ Sample() [1/2]
◆ Sample() [2/2]
Pixel olc::Sprite::Sample |
( |
float | x, |
|
|
float | y ) const |
◆ SampleBL() [1/2]
◆ SampleBL() [2/2]
Pixel olc::Sprite::SampleBL |
( |
float | u, |
|
|
float | v ) const |
◆ SetPixel() [1/2]
◆ SetPixel() [2/2]
bool olc::Sprite::SetPixel |
( |
int32_t | x, |
|
|
int32_t | y, |
|
|
Pixel | p ) |
◆ SetSampleMode()
◆ SetSize()
void olc::Sprite::SetSize |
( |
int32_t | w, |
|
|
int32_t | h ) |
◆ Size()
◆ height
int32_t olc::Sprite::height = 0 |
◆ loader
◆ modeSample
◆ pColData
◆ width
int32_t olc::Sprite::width = 0 |
The documentation for this class was generated from the following file: