|
nngn
|
Buffer holding texture image data. More...
#include <texture.h>

Public Types | |
| using | texel3 = vec3_base<u8> |
| using | texel4 = vec4_base<u8> |
Public Member Functions | |
| Texture (uvec2 size={}) | |
| uvec2 | size (void) const |
| std::span< const texel4 > | data (void) const |
| void | resize (uvec2 size) |
| void | copy (const u8 *p) |
| void | copy (uvec2 size, const u8 *p) |
| texel4 | sample (vec2 uv) const |
Private Attributes | |
| uvec2 | m_size |
| vec2 | size_f |
| std::vector< texel4 > | m_data |
Buffer holding texture image data.
| using nngn::term::Texture::texel3 = vec3_base<u8> |
| using nngn::term::Texture::texel4 = vec4_base<u8> |
|
inlineexplicit |

|
inline |
|
inline |
|
inline |

|
private |
|
private |
|
private |