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>
|
|
| 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
format of data in the component_type array
| Enumerator |
|---|
| grey | a sequence of 1 channel, single byte color: grey, ...
|
| rg | a sequence of 2 channels, single byte colors: red, green, ...
|
| rgb | a sequence of 3 channels, single byte colors: red, green, blue, ...
|
| rgba | a sequence of 4 channels, single byte colors: red, green, blue, alpha, ...
|
◆ wrap_mode
behavior when sampling outside of the normalized texture range (u0-1, v0-1)
| Enumerator |
|---|
| clamped | returns the closest value in range. e.g: {0, 2} OR {0, 1.1} would sample {0, 1}
|
| repeat | sampled values repeat. e.g: {2,2}, {3,3}, 100,100} would all sample {1,1}
|
| mirrored | every odd whole value flips the index of the sampled value. {1.25, 0.5} would sample {0.75, 0.5}
|
◆ update_data() [1/2]
◆ update_data() [2/2]
| virtual void gdk::texture::update_data |
( |
const texture_data::view & | , |
|
|
const size_t | offsetX, |
|
|
const size_t | offsetY ) |
|
pure virtual |
update a section of texture data \warn formats must match \warn new data must be kept within bounds of the existing data
Implemented in gdk::webgl1es2_texture.
The documentation for this class was generated from the following file:
- /home/deck/Workspace/gdk-test_game/thirdparty/gdk-graphics/include/gdk/texture.h