Simple GUI Library
image.h File Reference
#include "sml/graphics_wrapper/texture.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sgl::Image
 

Enumerations

enum class  ImageFormat { INVALID , BMP , PNG }
 

Functions

void Sgl::renderImage (const Image *image, const Sml::Rectangle< int32_t > &targetRegion)
 
void Sgl::renderImage (const Image *image, const Sml::Rectangle< int32_t > &targetRegion, int32_t scaledWidth, int32_t scaledHeight)
 

Detailed Description

Author
Nikita Mochalov (github.com/tralf-strues)
Date
2021-11-06

Definition in file image.h.

Enumeration Type Documentation

◆ ImageFormat

enum class Sgl::ImageFormat
strong

Definition at line 15 of file image.h.

Function Documentation

◆ renderImage() [1/2]

void Sgl::renderImage ( const Image image,
const Sml::Rectangle< int32_t > &  targetRegion 
)

Definition at line 30 of file image.cpp.

◆ renderImage() [2/2]

void Sgl::renderImage ( const Image image,
const Sml::Rectangle< int32_t > &  targetRegion,
int32_t  scaledWidth,
int32_t  scaledHeight 
)

Definition at line 38 of file image.cpp.