|
gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
|
uniform color data, usually used to color the surface of a 3d model, but also used for height maps, volumetric lights etc. More...
#include <texture.h>

Public Types | |
| enum class | wrap_mode { clamped , repeat , mirrored } |
| behavior when sampling outside of the normalized texture range (u0-1, v0-1) More... | |
| enum class | filter_mode { sharp , smooth } |
| how a texel is chosen when a pixel does not land exactly on one More... | |
| using | format = texture_data::format |
| format of data in the component_type array. | |
Public Member Functions | |
| 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 std::size_t offsetX, const std::size_t offsetY)=0 |
| update a section of texture data | |
| virtual | ~texture ()=default |
| trivial destructor | |
Protected Member Functions | |
| texture ()=default | |
| interface type cannot be instantiated | |
uniform color data, usually used to color the surface of a 3d model, but also used for height maps, volumetric lights etc.
format of data in the component_type array.
|
strong |
|
strong |
behavior when sampling outside of the normalized texture range (u0-1, v0-1)
|
pure virtual |
replace the texture data with new data
Implemented in gdk::graphics::null_texture.
|
pure virtual |
update a section of texture data
| gdk::graphics::exception | the section is in another format than the texture, or not wholly within it |
Implemented in gdk::graphics::null_texture.