3#ifndef GDK_GFX_TEXTURE_H
4#define GDK_GFX_TEXTURE_H
6#include <gdk/graphics_types.h>
12 namespace texture_data {
wrap_mode
behavior when sampling outside of the normalized texture range (u0-1, v0-1)
Definition texture.h:31
@ repeat
sampled values repeat. e.g: {2,2}, {3,3}, 100,100} would all sample {1,1}
Definition texture.h:33
@ clamped
returns the closest value in range. e.g: {0, 2} OR {0, 1.1} would sample {0, 1}
Definition texture.h:32
@ mirrored
every odd whole value flips the index of the sampled value. {1.25, 0.5} would sample {0....
Definition texture.h:34
virtual ~texture()=default
trivial destructor
virtual void update_data(const texture_data::view &)=0
replace the texture data with new data
virtual void update_data(const texture_data::view &, const size_t offsetX, const size_t offsetY)=0
texture()=default
interface type cannot be instantiated
format
format of data in the component_type array
Definition texture.h:23
@ rg
a sequence of 2 channels, single byte colors: red, green, ...
Definition texture.h:25
@ rgba
a sequence of 4 channels, single byte colors: red, green, blue, alpha, ...
Definition texture.h:27
@ grey
a sequence of 1 channel, single byte color: grey, ...
Definition texture.h:24
@ rgb
a sequence of 3 channels, single byte colors: red, green, blue, ...
Definition texture.h:26
provides a pointer a contiguous list of channel data representing 2D texture metadata that contains i...
Definition texture_data.h:20