@ -772,14 +772,14 @@ class MAGNUM_EXPORT AbstractTexture {
static Image1DImplementation image1DImplementation ;
# endif
typedef void ( AbstractTexture : : * Image2DImplementation ) ( GLenum , GLint , InternalFormat , const Math : : Vector2 < GLs izei > & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL imageImplementationDefault ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Math : : Vector2 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL imageImplementationDSA ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Math : : Vector2 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
typedef void ( AbstractTexture : : * Image2DImplementation ) ( GLenum , GLint , InternalFormat , const Vector2i & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL imageImplementationDefault ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Vector2i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL imageImplementationDSA ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Vector2i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
static Image2DImplementation image2DImplementation ;
typedef void ( AbstractTexture : : * Image3DImplementation ) ( GLenum , GLint , InternalFormat , const Math : : Vector3 < GLs izei > & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL imageImplementationDefault ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Math : : Vector3 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL imageImplementationDSA ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Math : : Vector3 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
typedef void ( AbstractTexture : : * Image3DImplementation ) ( GLenum , GLint , InternalFormat , const Vector3i & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL imageImplementationDefault ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Vector3i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL imageImplementationDSA ( GLenum target , GLint mipLevel , InternalFormat internalFormat , const Vector3i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
static Image3DImplementation image3DImplementation ;
# ifndef MAGNUM_TARGET_GLES
@ -789,14 +789,14 @@ class MAGNUM_EXPORT AbstractTexture {
static SubImage1DImplementation subImage1DImplementation ;
# endif
typedef void ( AbstractTexture : : * SubImage2DImplementation ) ( GLenum , GLint , const Math : : Vector2 < GL int > & , const Math : : Vector2 < GLs izei > & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL subImageImplementationDefault ( GLenum target , GLint mipLevel , const Math : : Vector2 < GL int > & offset , const Math : : Vector2 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL subImageImplementationDSA ( GLenum target , GLint mipLevel , const Math : : Vector2 < GL int > & offset , const Math : : Vector2 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
typedef void ( AbstractTexture : : * SubImage2DImplementation ) ( GLenum , GLint , const Vector2i & , const Vector2i & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL subImageImplementationDefault ( GLenum target , GLint mipLevel , const Vector2i & offset , const Vector2i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL subImageImplementationDSA ( GLenum target , GLint mipLevel , const Vector2i & offset , const Vector2i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
static SubImage2DImplementation subImage2DImplementation ;
typedef void ( AbstractTexture : : * SubImage3DImplementation ) ( GLenum , GLint , const Math : : Vector3 < GL int > & , const Math : : Vector3 < GLs izei > & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL subImageImplementationDefault ( GLenum target , GLint mipLevel , const Math : : Vector3 < GL int > & offset , const Math : : Vector3 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL subImageImplementationDSA ( GLenum target , GLint mipLevel , const Math : : Vector3 < GL int > & offset , const Math : : Vector3 < GLs izei > & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
typedef void ( AbstractTexture : : * SubImage3DImplementation ) ( GLenum , GLint , const Vector3i & , const Vector3i & , AbstractImage : : Components , AbstractImage : : ComponentType , const GLvoid * ) ;
void MAGNUM_LOCAL subImageImplementationDefault ( GLenum target , GLint mipLevel , const Vector3i & offset , const Vector3i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
void MAGNUM_LOCAL subImageImplementationDSA ( GLenum target , GLint mipLevel , const Vector3i & offset , const Vector3i & size , AbstractImage : : Components components , AbstractImage : : ComponentType type , const GLvoid * data ) ;
static SubImage3DImplementation subImage3DImplementation ;
GLuint _id ;
@ -860,12 +860,12 @@ template<> struct MAGNUM_EXPORT AbstractTexture::DataHelper<2> {
( texture - > * image2DImplementation ) ( target , mipLevel , internalFormat , image - > size ( ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 2 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Math : : Vector2 < GL int > & offset , Image * image ) {
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 2 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Vector2i & offset , Image * image ) {
( texture - > * subImage2DImplementation ) ( target , mipLevel , offset , image - > size ( ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 1 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Math : : Vector2 < GL int > & offset , Image * image ) {
( texture - > * subImage2DImplementation ) ( target , mipLevel , offset , Math : : Vector2 < GL int > ( image - > size ( ) , 1 ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 1 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Vector2i & offset , Image * image ) {
( texture - > * subImage2DImplementation ) ( target , mipLevel , offset , Vector2i ( image - > size ( ) , 1 ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
} ;
template < > struct MAGNUM_EXPORT AbstractTexture : : DataHelper < 3 > {
@ -886,12 +886,12 @@ template<> struct MAGNUM_EXPORT AbstractTexture::DataHelper<3> {
( texture - > * image3DImplementation ) ( target , mipLevel , internalFormat , image - > size ( ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 3 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Math : : Vector3 < GL int > & offset , Image * image ) {
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 3 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Vector3i & offset , Image * image ) {
( texture - > * subImage3DImplementation ) ( target , mipLevel , offset , image - > size ( ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 2 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Math : : Vector3 < GL int > & offset , Image * image ) {
( texture - > * subImage3DImplementation ) ( target , mipLevel , offset , Math : : Vector3 < GL int > ( image - > size ( ) , 1 ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
template < class Image > inline static typename std : : enable_if < Image : : Dimensions = = 2 , void > : : type setSub ( AbstractTexture * texture , GLenum target , GLint mipLevel , const Vector3i & offset , Image * image ) {
( texture - > * subImage3DImplementation ) ( target , mipLevel , offset , Vector3i ( image - > size ( ) , 1 ) , image - > components ( ) , image - > type ( ) , image - > data ( ) ) ;
}
} ;
# endif