|
virtual double | valueToDouble (void *val) const override |
|
virtual dvec2 | valueToVec2Double (void *val) const override |
|
virtual dvec3 | valueToVec3Double (void *val) const override |
|
virtual dvec4 | valueToVec4Double (void *val) const override |
|
virtual double | valueToNormalizedDouble (void *val) const override |
|
virtual dvec2 | valueToNormalizedVec2Double (void *val) const override |
|
virtual dvec3 | valueToNormalizedVec3Double (void *val) const override |
|
virtual dvec4 | valueToNormalizedVec4Double (void *val) const override |
|
virtual void | doubleToValue (double in, void *out) const override |
|
virtual void | vec2DoubleToValue (dvec2 in, void *out) const override |
|
virtual void | vec3DoubleToValue (dvec3 in, void *out) const override |
|
virtual void | vec4DoubleToValue (dvec4 in, void *out) const override |
|
| DataFormatBase (DataFormatId type, size_t components, size_t size, double max, double min, double lowest, NumericType nt, const std::string &s) |
|
size_t | getSize () const |
|
size_t | getComponents () const |
|
size_t | getPrecision () const |
|
NumericType | getNumericType () const |
|
double | getMax () const |
|
double | getMin () const |
|
double | getLowest () const |
|
const char * | getString () const |
|
DataFormatId | getId () const |
|
template<typename T , typename... Args> |
auto | dispatch (T &obj, Args &&... args) const -> typename T::type |
|
|
static constexpr DataFormatId | id () |
|
static const DataFormat< T > * | get () |
|
static constexpr size_t | size () |
|
static constexpr size_t | components () |
|
static constexpr size_t | precision () |
|
static constexpr NumericType | numericType () |
|
static constexpr T | max () |
|
static constexpr T | min () |
|
static constexpr T | lowest () |
|
static constexpr double | maxToDouble () |
|
static constexpr double | minToDouble () |
|
static constexpr double | lowestToDouble () |
|
static std::string | str () |
|
static const DataFormatBase * | get () |
|
static const DataFormatBase * | get (DataFormatId id) |
|
static const DataFormatBase * | get (const std::string &name) |
|
static const DataFormatBase * | get (NumericType type, size_t components, size_t precision) |
|
|
static const size_t | comp = util::extent<T>::value |
|
static const size_t | typesize = sizeof(type) |
|
static const size_t | compsize = sizeof(primitive) |
|
static const NumericType | numtype = util::getNumericType<primitive>() |
|
|
static const DataFormatBase * | getPointer (DataFormatId id) |
|
DataFormatId | formatId_ |
|
size_t | components_ |
|
size_t | size_ |
|
NumericType | numericType_ |
|
double | max_ |
|
double | min_ |
|
double | lowest_ |
|
std::string | formatStr_ |
|
◆ components()
Returns the number of components in the format, 1 to 4.
◆ precision()
Returns number of bits in each component in the format. can be 8, 16, 32 or 64.
◆ size()
Returns the size of the format in bytes. For all components.
The documentation for this class was generated from the following file: