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
texture()=default
interface type cannot be instantiated
GLuint getHandle() const
returns the handle to the webgl1es2_texture in the opengl context
static const std::shared_ptr< gdk::webgl1es2_texture > GetCheckerboardOfDeath()
webgl1es2_texture useful for indicating webgl1es2_texture related failure lazily instantiated.
virtual void update_data(const texture_data::view &) override
replace the texture data with new data
minification_filter
Definition webgl1es2_texture.h:30
@ linear_mipmap_linear
Definition webgl1es2_texture.h:60
@ nearest_mipmap_nearest
Definition webgl1es2_texture.h:42
@ linear_mipmap_nearest
Definition webgl1es2_texture.h:47
@ linear
Definition webgl1es2_texture.h:33
@ nearest_mipmap_linear
Definition webgl1es2_texture.h:54
@ nearest
Definition webgl1es2_texture.h:37
bool operator!=(const webgl1es2_texture &) const
equality semantics
webgl1es2_texture & operator=(webgl1es2_texture &&)=default
move semantics
magnification_filter
Definition webgl1es2_texture.h:65
@ nearest
Definition webgl1es2_texture.h:68
webgl1es2_texture(const texture_data::view &aTextureView, const wrap_mode aWrapModeU=wrap_mode::repeat, const wrap_mode aWrapModeV=wrap_mode::repeat, const minification_filter minFilter=minification_filter::linear, const magnification_filter magFilter=magnification_filter::nearest)
creates a 2d webgl1es2_texture from decoded image data.
virtual void update_data(const texture_data::view &, const size_t offsetX, const size_t offsetY) override
bool operator==(const webgl1es2_texture &) const
equality semantics
webgl1es2_texture(webgl1es2_texture &&)=default
move semantics
static const GLint getMaxTextureSize()
gets the max texture size supported by the current graphics device
void activateAndBind(const GLint aUnit) const
activates the texture in given unit and binds it to GL_TEXTURE_2D, so that it can be manipulated by o...
provides a pointer a contiguous list of channel data representing 2D texture metadata that contains i...
Definition texture_data.h:20