Castor3D 0.16.0
Multiplatform 3D engine
Namespaces | Functions
PixelComponents.hpp File Reference

Namespaces

namespace  castor
 

Functions

template<PixelFormat PFT, PixelComponent PCT>
uint8_t castor::getX8U (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
int8_t castor::getX8S (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
uint16_t castor::getX16U (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
int16_t castor::getX16S (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
int16_t castor::getX16F (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
uint32_t castor::getX32U (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
int32_t castor::getX32S (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
float castor::getX32F (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
uint64_t castor::getX64U (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
int64_t castor::getX64S (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
double castor::getX64F (uint8_t const *buffer)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX8S (uint8_t *buffer, int8_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX16S (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX16F (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX32U (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX32S (uint8_t *buffer, int32_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX64U (uint8_t *buffer, uint64_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX64S (uint8_t *buffer, int64_t value)
 
template<PixelFormat PFT, PixelComponent PCT>
void castor::setX64F (uint8_t *buffer, double value)
 
template<PixelFormat PFT>
uint8_t castor::getR8U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int8_t castor::getR8S (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint16_t castor::getR16U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getR16S (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getR16F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint32_t castor::getR32U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int32_t castor::getR32S (uint8_t const *buffer)
 
template<PixelFormat PFT>
float castor::getR32F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint64_t castor::getR64U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int64_t castor::getR64S (uint8_t const *buffer)
 
template<PixelFormat PFT>
double castor::getR64F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint8_t castor::getG8U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int8_t castor::getG8S (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint16_t castor::getG16U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getG16S (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getG16F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint32_t castor::getG32U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int32_t castor::getG32S (uint8_t const *buffer)
 
template<PixelFormat PFT>
float castor::getG32F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint64_t castor::getG64U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int64_t castor::getG64S (uint8_t const *buffer)
 
template<PixelFormat PFT>
double castor::getG64F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint8_t castor::getB8U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int8_t castor::getB8S (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint16_t castor::getB16U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getB16S (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getB16F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint32_t castor::getB32U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int32_t castor::getB32S (uint8_t const *buffer)
 
template<PixelFormat PFT>
float castor::getB32F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint64_t castor::getB64U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int64_t castor::getB64S (uint8_t const *buffer)
 
template<PixelFormat PFT>
double castor::getB64F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint8_t castor::getA8U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int8_t castor::getA8S (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint16_t castor::getA16U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getA16S (uint8_t const *buffer)
 
template<PixelFormat PFT>
int16_t castor::getA16F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint32_t castor::getA32U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int32_t castor::getA32S (uint8_t const *buffer)
 
template<PixelFormat PFT>
float castor::getA32F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint64_t castor::getA64U (uint8_t const *buffer)
 
template<PixelFormat PFT>
int64_t castor::getA64S (uint8_t const *buffer)
 
template<PixelFormat PFT>
double castor::getA64F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint16_t castor::getD16U (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint32_t castor::getD24U (uint8_t const *buffer)
 
template<PixelFormat PFT>
float castor::getD32F (uint8_t const *buffer)
 
template<PixelFormat PFT>
uint8_t castor::getS8U (uint8_t const *buffer)
 
template<PixelFormat PFT>
void castor::setR8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PFT>
void castor::setR8S (uint8_t *buffer, int8_t value)
 
template<PixelFormat PFT>
void castor::setR16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT>
void castor::setR16S (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setR16F (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setR32S (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT>
void castor::setR32U (uint8_t *buffer, int32_t value)
 
template<PixelFormat PFT>
void castor::setR32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT>
void castor::setR64U (uint8_t *buffer, uint64_t value)
 
template<PixelFormat PFT>
void castor::setR64S (uint8_t *buffer, int64_t value)
 
template<PixelFormat PFT>
void castor::setR64F (uint8_t *buffer, double value)
 
template<PixelFormat PFT>
void castor::setG8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PFT>
void castor::setG8S (uint8_t *buffer, int8_t value)
 
template<PixelFormat PFT>
void castor::setG16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT>
void castor::setG16S (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setG16F (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setG32U (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT>
void castor::setG32S (uint8_t *buffer, int32_t value)
 
template<PixelFormat PFT>
void castor::setG32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT>
void castor::setG64U (uint8_t *buffer, uint64_t value)
 
template<PixelFormat PFT>
void castor::setG64S (uint8_t *buffer, int64_t value)
 
template<PixelFormat PFT>
void castor::setG64F (uint8_t *buffer, double value)
 
template<PixelFormat PFT>
void castor::setB8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PFT>
void castor::setB8S (uint8_t *buffer, int8_t value)
 
template<PixelFormat PFT>
void castor::setB16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT>
void castor::setB16S (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setB16F (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setB32U (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT>
void castor::setB32S (uint8_t *buffer, int32_t value)
 
template<PixelFormat PFT>
void castor::setB32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT>
void castor::setB64U (uint8_t *buffer, uint64_t value)
 
template<PixelFormat PFT>
void castor::setB64S (uint8_t *buffer, int64_t value)
 
template<PixelFormat PFT>
void castor::setB64F (uint8_t *buffer, double value)
 
template<PixelFormat PFT>
void castor::setA8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PFT>
void castor::setA8S (uint8_t *buffer, int8_t value)
 
template<PixelFormat PFT>
void castor::setA16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT>
void castor::setA16S (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setA16F (uint8_t *buffer, int16_t value)
 
template<PixelFormat PFT>
void castor::setA32U (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT>
void castor::setA32S (uint8_t *buffer, int32_t value)
 
template<PixelFormat PFT>
void castor::setA32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT>
void castor::setA64U (uint8_t *buffer, uint64_t value)
 
template<PixelFormat PFT>
void castor::setA64S (uint8_t *buffer, int64_t value)
 
template<PixelFormat PFT>
void castor::setA64F (uint8_t *buffer, double value)
 
template<PixelFormat PFT>
void castor::setD16U (uint8_t *buffer, uint16_t value)
 
template<PixelFormat PFT>
void castor::setD24U (uint8_t *buffer, uint32_t value)
 
template<PixelFormat PFT>
void castor::setD32F (uint8_t *buffer, float value)
 
template<PixelFormat PFT>
void castor::setS8U (uint8_t *buffer, uint8_t value)
 
template<PixelFormat PF>
float castor::getR32F (Pixel< PF > const &pixel)
 Function to retrieve pixel colour component in float.
 
template<PixelFormat PF>
void castor::setR32F (Pixel< PF > const &pixel, float value)
 Function to define pixel colour component in float.
 
template<PixelFormat PF>
uint8_t castor::getR8U (Pixel< PF > const &pixel)
 Function to retrieve pixel red component in byte.
 
template<PixelFormat PF>
void castor::setR8U (Pixel< PF > &pixel, uint8_t value)
 Function to define pixel red component in byte.
 
template<PixelFormat PF>
float castor::getG32F (Pixel< PF > const &pixel)
 Function to retrieve pixel green component in float.
 
template<PixelFormat PF>
void castor::setG32F (Pixel< PF > &pixel, float value)
 Function to define pixel green component in float.
 
template<PixelFormat PF>
uint8_t castor::getG8U (Pixel< PF > const &pixel)
 Function to retrieve pixel green component in byte.
 
template<PixelFormat PF>
void castor::setG8U (Pixel< PF > &pixel, uint8_t value)
 Function to define pixel green component in byte.
 
template<PixelFormat PF>
float castor::getB32F (Pixel< PF > const &pixel)
 Function to retrieve pixel blue component in float.
 
template<PixelFormat PF>
void castor::setB32F (Pixel< PF > &pixel, float value)
 Function to define pixel blue component in float.
 
template<PixelFormat PF>
uint8_t castor::getB8U (Pixel< PF > const &pixel)
 Function to retrieve pixel blue component in byte.
 
template<PixelFormat PF>
void castor::setB8U (Pixel< PF > &pixel, uint8_t value)
 Function to define pixel blue component in byte.
 
template<PixelFormat PF>
float castor::getA32F (Pixel< PF > const &pixel)
 Function to retrieve pixel alpha component in float.
 
template<PixelFormat PF>
void castor::setA32F (Pixel< PF > &pixel, float value)
 Function to define pixel alpha component in float.
 
template<PixelFormat PF>
uint8_t castor::getA8U (Pixel< PF > const &pixel)
 Function to retrieve pixel alpha component in byte.
 
template<PixelFormat PF>
void castor::setA8U (Pixel< PF > &pixel, uint8_t value)
 Function to define pixel alpha component in byte.
 
template<PixelFormat PF>
float castor::getD32F (Pixel< PF > const &pixel)
 Function to retrieve pixel depth component in float.
 
template<PixelFormat PF>
void castor::setD32F (Pixel< PF > &pixel, float value)
 Function to define pixel depth component in float.
 
template<PixelFormat PF>
uint16_t castor::getD16U (Pixel< PF > const &pixel)
 Function to retrieve pixel depth component in uint16_t.
 
template<PixelFormat PF>
void castor::setD16U (Pixel< PF > &pixel, uint16_t value)
 Function to define pixel depth component in uint16_t.
 
template<PixelFormat PF>
uint32_t castor::getD24U (Pixel< PF > const &pixel)
 Function to retrieve pixel depth component in uint32_t, with 24 relevant bits.
 
template<PixelFormat PF>
void castor::setD24U (Pixel< PF > &pixel, uint32_t value)
 Function to define pixel depth component in uint32_t, with 24 relevant bits.
 
template<PixelFormat PF>
uint8_t castor::getS8U (Pixel< PF > const &pixel)
 Function to retrieve pixel depth stencil in byte.
 
template<PixelFormat PF>
void castor::setS8U (Pixel< PF > &pixel, uint8_t value)
 Function to define pixel depth stencil in byte.
 
PixelComponents castor::getPixelComponents (PixelFormat format)