#include <MRImage.h>
struct to hold Image data
◆ heapBytes()
size_t MR::Image::heapBytes |
( |
| ) |
const |
|
inlinenodiscard |
returns the amount of memory this object occupies on heap
◆ operator[]() [1/2]
Color & MR::Image::operator[] |
( |
const Vector2i & | p | ) |
|
|
inlinenodiscard |
fetches some texture element specified by integer coordinates
◆ operator[]() [2/2]
Color MR::Image::operator[] |
( |
const Vector2i & | p | ) |
const |
|
inlinenodiscard |
◆ sample()
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter
◆ sampleBilinear()
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it
◆ sampleDiscrete()
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel
◆ pixels
std::vector<Color> MR::Image::pixels |
◆ resolution
Vector2i MR::Image::resolution |
The documentation for this struct was generated from the following file: