ShishGL  1.0
A simple modular cross-platform graphics library
Sh::Image Class Reference

#include <Image.hpp>

Public Types

using Pixels = std::vector< Color >
 

Public Member Functions

 Image (const Vector2< size_t > &size, const Color &color=Color::WHITE)
 
void fill (const Color &color)
 
void setPixel (const Vector2< size_t > &pos, const Color &color)
 
const ColorgetPixels () const
 
const uint8_t * getData () const
 
Color getPixel (size_t x, size_t y) const
 
const Vector2< size_t > & size () const
 
void blend (const Image &other)
 
void paste (IPlatform::IContext *context)
 

Member Typedef Documentation

◆ Pixels

using Sh::Image::Pixels = std::vector<Color>

Constructor & Destructor Documentation

◆ Image()

Sh::Image::Image ( const Vector2< size_t > &  size,
const Color color = Color::WHITE 
)
inlineexplicit

Member Function Documentation

◆ blend()

void Image::blend ( const Image other)

◆ fill()

void Sh::Image::fill ( const Color color)
inline

◆ getData()

const uint8_t* Sh::Image::getData ( ) const
inline

◆ getPixel()

Color Sh::Image::getPixel ( size_t  x,
size_t  y 
) const
inline

◆ getPixels()

const Color* Sh::Image::getPixels ( ) const
inline

◆ paste()

void Sh::Image::paste ( IPlatform::IContext context)
inline

◆ setPixel()

void Sh::Image::setPixel ( const Vector2< size_t > &  pos,
const Color color 
)
inline

◆ size()

const Vector2<size_t>& Sh::Image::size ( ) const
inline

The documentation for this class was generated from the following files: