|
|
|
|
@ -147,85 +147,75 @@ class MAGNUM_EXPORT AbstractTexture {
|
|
|
|
|
enum class ComponentType { |
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) unsigned byte |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
UnsignedByte, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) byte |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
Byte, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) unsigned short |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
UnsignedShort, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) short |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
Short, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) unsigned integer |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
UnsignedInt, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* (Non-normalized) integer |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{EXT,texture_integer} |
|
|
|
|
*/ |
|
|
|
|
Int, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Half float (16 bit) |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{ARB,texture_float} |
|
|
|
|
*/ |
|
|
|
|
Half, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Float (32 bit) |
|
|
|
|
* |
|
|
|
|
* @requires_gl30 Extension @extension{ARB,texture_float} |
|
|
|
|
*/ |
|
|
|
|
Float, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Normalized unsigned byte, i.e. values from range |
|
|
|
|
* @f$ [0; 255] @f$ are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
* Normalized unsigned byte, i.e. values from range @f$ [0; 255] @f$ |
|
|
|
|
* are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
*/ |
|
|
|
|
NormalizedUnsignedByte, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Normalized byte, i.e. values from range |
|
|
|
|
* @f$ [-128; 127] @f$ are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
* |
|
|
|
|
* @requires_gl31 (no extension providing this functionality) |
|
|
|
|
* Normalized signed byte, i.e. values from range @f$ [-128; 127] @f$ |
|
|
|
|
* are converted to range @f$ [-1.0; 1.0] @f$. |
|
|
|
|
* @requires_gl31 Extension @extension{EXT,texture_snorm} |
|
|
|
|
*/ |
|
|
|
|
NormalizedByte, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Normalized unsigned short, i.e. values from range |
|
|
|
|
* @f$ [0; 65536] @f$ are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
* Normalized unsigned short, i.e. values from range @f$ [0; 65536] @f$ |
|
|
|
|
* are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
*/ |
|
|
|
|
NormalizedUnsignedShort, |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Normalized short, i.e. values from range |
|
|
|
|
* @f$ [-32768; 32767] @f$ are converted to range @f$ [0.0; 1.0] @f$. |
|
|
|
|
* |
|
|
|
|
* @requires_gl31 (no extension providing this functionality) |
|
|
|
|
* Normalized signed short, i.e. values from range @f$ [-32768; 32767] @f$ |
|
|
|
|
* are converted to range @f$ [-1.0; 1.0] @f$. |
|
|
|
|
* @requires_gl31 Extension @extension{EXT,texture_snorm} |
|
|
|
|
*/ |
|
|
|
|
NormalizedShort |
|
|
|
|
}; |
|
|
|
|
|