gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
texture_data.h File Reference

what the core takes: decoded channel data and the metadata describing it More...

#include <cstddef>
#include <vector>
Include dependency graph for texture_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gdk::graphics::texture_data::view
 provides a pointer a contiguous list of channel data representing 2D texture metadata that contains its size, format and usage info More...

Typedefs

using gdk::graphics::texture_data::channel_type = unsigned char
using gdk::graphics::texture_data::channel_data = std::vector<channel_type>
using gdk::graphics::texture_data::encoded_byte = unsigned char

Enumerations

enum class  gdk::graphics::texture_data::format { grey , rg , rgb , rgba }
 format of data in the component_type array More...

Detailed Description

what the core takes: decoded channel data and the metadata describing it

Enumeration Type Documentation

◆ 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, ...