opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
texture_format.h File Reference
#include <liboscar/graphics/texture_component_format.h>
#include <cstddef>
#include <optional>
Include dependency graph for texture_format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  osc
 

Enumerations

enum class  osc::TextureFormat {
  osc::R8 , osc::RG16 , osc::RGB24 , osc::RGBA32 ,
  osc::RGFloat , osc::RGBFloat , osc::RGBAFloat , osc::NUM_OPTIONS
}
 

Functions

size_t osc::num_components_in (TextureFormat)
 
TextureComponentFormat osc::component_format_of (TextureFormat)
 
size_t osc::num_bytes_per_pixel_in (TextureFormat)
 
std::optional< TextureFormatosc::to_texture_format (size_t num_components, TextureComponentFormat)