This binary image class helps load images and visual resources from the disk; the binary image IS NOT a texture, it is intended to be used in contextes which are NOT rendering - for rendering purpouses see texture class from client's implementation.
More...
#include <binary_image.hpp>
This binary image class helps load images and visual resources from the disk; the binary image IS NOT a texture, it is intended to be used in contextes which are NOT rendering - for rendering purpouses see texture class from client's implementation.
Definition at line 53 of file binary_image.hpp.
◆ BinaryImage() [1/4]
Eng3D::BinaryImage::BinaryImage |
( |
| ) |
|
|
default |
◆ BinaryImage() [2/4]
◆ BinaryImage() [3/4]
Eng3D::BinaryImage::BinaryImage |
( |
size_t |
_width, |
|
|
size_t |
_height, |
|
|
size_t |
bpp = 32 |
|
) |
| |
◆ BinaryImage() [4/4]
Eng3D::BinaryImage::BinaryImage |
( |
const BinaryImage & |
tex | ) |
|
◆ ~BinaryImage()
virtual Eng3D::BinaryImage::~BinaryImage |
( |
| ) |
|
|
virtualdefault |
◆ from_file()
◆ get_pixel()
Eng3D::Color Eng3D::BinaryImage::get_pixel |
( |
size_t |
x, |
|
|
size_t |
y |
|
) |
| const |
|
inline |
Obtains a pixel from the binary image.
- Parameters
-
x | X coordinate |
y | Y coordinate |
- Returns
- uint32_t The colour
Definition at line 67 of file binary_image.hpp.
◆ operator=()
◆ to_file()
void Eng3D::BinaryImage::to_file |
( |
const std::string & |
filename | ) |
|
|
virtual |
◆ bpp
size_t Eng3D::BinaryImage::bpp |
◆ buffer
std::unique_ptr<uint32_t[]> Eng3D::BinaryImage::buffer |
◆ height
size_t Eng3D::BinaryImage::height |
◆ width
size_t Eng3D::BinaryImage::width |
The documentation for this struct was generated from the following files: