QAbstractTexture Class

( Qt3DRender::QAbstractTexture )

A base class to be used to provide textures. 更多...

头: #include <QAbstractTexture>
qmake: QT += 3drender
Since: Qt 5.5
继承: Qt3DCore::QNode
继承者: Qt3DRender::QTexture1D , Qt3DRender::QTexture1DArray , Qt3DRender::QTexture2D , Qt3DRender::QTexture2DArray , Qt3DRender::QTexture2DMultisample , Qt3DRender::QTexture2DMultisampleArray , Qt3DRender::QTexture3D , Qt3DRender::QTextureBuffer , Qt3DRender::QTextureCubeMap , Qt3DRender::QTextureCubeMapArray , Qt3DRender::QTextureLoader ,和 Qt3DRender::QTextureRectangle

公共类型

enum ComparisonFunction { CompareLessEqual, CompareGreaterEqual, CompareLess, CompareGreater, ..., CompareNever }
enum ComparisonMode { CompareRefToTexture, CompareNone }
enum CubeMapFace { CubeMapPositiveX, CubeMapNegativeX, CubeMapPositiveY, CubeMapNegativeY, ..., AllFaces }
enum Filter { Nearest, Linear, NearestMipMapNearest, NearestMipMapLinear, LinearMipMapNearest, LinearMipMapLinear }
enum Status { None, Loading, Ready, Error }
enum Target { TargetAutomatic, Target1D, Target1DArray, Target2D, ..., TargetBuffer }
enum TextureFormat { NoFormat, Automatic, R8_UNorm, RG8_UNorm, ..., LuminanceAlphaFormat }

特性

公共函数

void addTextureImage (QAbstractTextureImage * textureImage )
ComparisonFunction comparisonFunction () const
ComparisonMode comparisonMode () const
QTextureGeneratorPtr dataGenerator () const
int depth () const
TextureFormat format () const
bool generateMipMaps () const
int height () const
int layers () const
Filter magnificationFilter () const
float maximumAnisotropy () const
Filter minificationFilter () const
void removeTextureImage (QAbstractTextureImage * textureImage )
int samples () const
void setSize (int w , int h = 1, int d = 1)
void setWrapMode (const QTextureWrapMode & wrapMode )
状态 status () const
Target target () const
QVector<QAbstractTextureImage *> textureImages () const
int width () const
QTextureWrapMode * wrapMode ()

公共槽

void setComparisonFunction (ComparisonFunction function )
void setComparisonMode (ComparisonMode mode )
void setDepth (int depth )
void setFormat (TextureFormat format )
void setGenerateMipMaps (bool gen )
void setHeight (int height )
void setLayers (int layers )
void setMagnificationFilter (Filter f )
void setMaximumAnisotropy (float anisotropy )
void setMinificationFilter (Filter f )
void setSamples (int samples )
void setWidth (int width )

信号

void comparisonFunctionChanged (ComparisonFunction comparisonFunction )
void comparisonModeChanged (ComparisonMode comparisonMode )
void depthChanged (int depth )
void formatChanged (TextureFormat format )
void generateMipMapsChanged (bool generateMipMaps )
void heightChanged (int height )
void layersChanged (int layers )
void magnificationFilterChanged (Filter magnificationFilter )
void maximumAnisotropyChanged (float maximumAnisotropy )
void minificationFilterChanged (Filter minificationFilter )
void samplesChanged (int samples )
void statusChanged (Status status )
void widthChanged (int width )

保护函数

QAbstractTexture (Qt3DCore::QNode * parent = nullptr)
QAbstractTexture (Target target , Qt3DCore::QNode * parent = nullptr)
QAbstractTexture (QAbstractTexturePrivate & dd , Qt3DCore::QNode * parent = nullptr)
void setStatus (Status status )

额外继承成员

详细描述

A base class to be used to provide textures.

The QAbstractTexture class shouldn't be used directly but rather through one of its subclasses. Each subclass implements a given texture target (2D, 2DArray, 3D, CubeMap ...) Each subclass provides a set of functors for each layer, cube map face and mipmap level. In turn the backend uses those functor to properly fill a corresponding OpenGL texture with data.

成员类型文档编制

enum QAbstractTexture:: ComparisonFunction

enum QAbstractTexture:: ComparisonMode

enum QAbstractTexture:: CubeMapFace

This enum identifies the faces of a cube map texture

常量 描述
Qt3DRender::QAbstractTexture::CubeMapPositiveX 0x8515 Specify the positive X face of a cube map
Qt3DRender::QAbstractTexture::CubeMapNegativeX 0x8516 Specify the negative X face of a cube map
Qt3DRender::QAbstractTexture::CubeMapPositiveY 0x8517 Specify the positive Y face of a cube map
Qt3DRender::QAbstractTexture::CubeMapNegativeY 0x8518 Specify the negative Y face of a cube map
Qt3DRender::QAbstractTexture::CubeMapPositiveZ 0x8519 Specify the positive Z face of a cube map
Qt3DRender::QAbstractTexture::CubeMapNegativeZ 0x851A Specify the negative Z face of a cube map
Qt3DRender::QAbstractTexture::AllFaces ? Specify all the faces of a cube map

注意: AllFaces should only be used when a behavior needs to be applied to all the faces of a cubemap. This is the case for example when using a cube map as a texture attachment. Using AllFaces in the attachment specfication would result in all faces being bound to the attachment point. On the other hand, if a specific face is specified, the attachment would only be using the specified face.

enum QAbstractTexture:: Filter

Holds the filter type of the texture provider.

常量 描述
Qt3DRender::QAbstractTexture::Nearest 0x2600 GL_NEAREST
Qt3DRender::QAbstractTexture::Linear 0x2601 GL_LINEAR
Qt3DRender::QAbstractTexture::NearestMipMapNearest 0x2700 GL_NEAREST_MIPMAP_NEAREST
Qt3DRender::QAbstractTexture::NearestMipMapLinear 0x2702 GL_NEAREST_MIPMAP_LINEAR
Qt3DRender::QAbstractTexture::LinearMipMapNearest 0x2701 GL_LINEAR_MIPMAP_NEAREST
Qt3DRender::QAbstractTexture::LinearMipMapLinear 0x2703 GL_LINEAR_MIPMAP_LINEAR

enum QAbstractTexture:: Status

Contains the status of the texture provider.

常量
Qt3DRender::QAbstractTexture::None 0
Qt3DRender::QAbstractTexture::Loading 1
Qt3DRender::QAbstractTexture::Ready 2
Qt3DRender::QAbstractTexture::Error 3

enum QAbstractTexture:: Target

常量 描述
Qt3DRender::QAbstractTexture::TargetAutomatic 0 Target will be determined by the Qt3D engine
Qt3DRender::QAbstractTexture::Target1D 0x0DE0 GL_TEXTURE_1D
Qt3DRender::QAbstractTexture::Target1DArray 0x8C18 GL_TEXTURE_1D_ARRAY
Qt3DRender::QAbstractTexture::Target2D 0x0DE1 GL_TEXTURE_2D
Qt3DRender::QAbstractTexture::Target2DArray 0x8C1A GL_TEXTURE_2D_ARRAY
Qt3DRender::QAbstractTexture::Target3D 0x806F GL_TEXTURE_3D
Qt3DRender::QAbstractTexture::TargetCubeMap 0x8513 GL_TEXTURE_CUBE_MAP
Qt3DRender::QAbstractTexture::TargetCubeMapArray 0x9009 GL_TEXTURE_CUBE_MAP_ARRAY
Qt3DRender::QAbstractTexture::Target2DMultisample 0x9100 GL_TEXTURE_2D_MULTISAMPLE
Qt3DRender::QAbstractTexture::Target2DMultisampleArray 0x9102 GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Qt3DRender::QAbstractTexture::TargetRectangle 0x84F5 GL_TEXTURE_RECTANGLE
Qt3DRender::QAbstractTexture::TargetBuffer 0x8C2A GL_TEXTURE_BUFFER

enum QAbstractTexture:: TextureFormat

This list describes all possible texture formats

常量 描述
Qt3DRender::QAbstractTexture::NoFormat 0 GL_NONE
Qt3DRender::QAbstractTexture::Automatic 1 automatically_determines_format
Qt3DRender::QAbstractTexture::R8_UNorm 0x8229 GL_R8
Qt3DRender::QAbstractTexture::RG8_UNorm 0x822B GL_RG8
Qt3DRender::QAbstractTexture::RGB8_UNorm 0x8051 GL_RGB8
Qt3DRender::QAbstractTexture::RGBA8_UNorm 0x8058 GL_RGBA8
Qt3DRender::QAbstractTexture::R16_UNorm 0x822A GL_R16
Qt3DRender::QAbstractTexture::RG16_UNorm 0x822C GL_RG16
Qt3DRender::QAbstractTexture::RGB16_UNorm 0x8054 GL_RGB16
Qt3DRender::QAbstractTexture::RGBA16_UNorm 0x805B GL_RGBA16
Qt3DRender::QAbstractTexture::R8_SNorm 0x8F94 GL_R8_SNORM
Qt3DRender::QAbstractTexture::RG8_SNorm 0x8F95 GL_RG8_SNORM
Qt3DRender::QAbstractTexture::RGB8_SNorm 0x8F96 GL_RGB8_SNORM
Qt3DRender::QAbstractTexture::RGBA8_SNorm 0x8F97 GL_RGBA8_SNORM
Qt3DRender::QAbstractTexture::R16_SNorm 0x8F98 GL_R16_SNORM
Qt3DRender::QAbstractTexture::RG16_SNorm 0x8F99 GL_RG16_SNORM
Qt3DRender::QAbstractTexture::RGB16_SNorm 0x8F9A GL_RGB16_SNORM
Qt3DRender::QAbstractTexture::RGBA16_SNorm 0x8F9B GL_RGBA16_SNORM
Qt3DRender::QAbstractTexture::R8U 0x8232 GL_R8UI
Qt3DRender::QAbstractTexture::RG8U 0x8238 GL_RG8UI
Qt3DRender::QAbstractTexture::RGB8U 0x8D7D GL_RGB8UI
Qt3DRender::QAbstractTexture::RGBA8U 0x8D7C GL_RGBA8UI
Qt3DRender::QAbstractTexture::R16U 0x8234 GL_R16UI
Qt3DRender::QAbstractTexture::RG16U 0x823A GL_RG16UI
Qt3DRender::QAbstractTexture::RGB16U 0x8D77 GL_RGB16UI
Qt3DRender::QAbstractTexture::RGBA16U 0x8D76 GL_RGBA16UI
Qt3DRender::QAbstractTexture::R32U 0x8236 GL_R32UI
Qt3DRender::QAbstractTexture::RG32U 0x823C GL_RG32UI
Qt3DRender::QAbstractTexture::RGB32U 0x8D71 GL_RGB32UI
Qt3DRender::QAbstractTexture::RGBA32U 0x8D70 GL_RGBA32UI
Qt3DRender::QAbstractTexture::R8I 0x8231 GL_R8I
Qt3DRender::QAbstractTexture::RG8I 0x8237 GL_RG8I
Qt3DRender::QAbstractTexture::RGB8I 0x8D8F GL_RGB8I
Qt3DRender::QAbstractTexture::RGBA8I 0x8D8E GL_RGBA8I
Qt3DRender::QAbstractTexture::R16I 0x8233 GL_R16I
Qt3DRender::QAbstractTexture::RG16I 0x8239 GL_RG16I
Qt3DRender::QAbstractTexture::RGB16I 0x8D89 GL_RGB16I
Qt3DRender::QAbstractTexture::RGBA16I 0x8D88 GL_RGBA16I
Qt3DRender::QAbstractTexture::R32I 0x8235 GL_R32I
Qt3DRender::QAbstractTexture::RG32I 0x823B GL_RG32I
Qt3DRender::QAbstractTexture::RGB32I 0x8D83 GL_RGB32I
Qt3DRender::QAbstractTexture::RGBA32I 0x8D82 GL_RGBA32I
Qt3DRender::QAbstractTexture::R16F 0x822D GL_R16F
Qt3DRender::QAbstractTexture::RG16F 0x822F GL_RG16F
Qt3DRender::QAbstractTexture::RGB16F 0x881B GL_RGB16F
Qt3DRender::QAbstractTexture::RGBA16F 0x881A GL_RGBA16F
Qt3DRender::QAbstractTexture::R32F 0x822E GL_R32F
Qt3DRender::QAbstractTexture::RG32F 0x8230 GL_RG32F
Qt3DRender::QAbstractTexture::RGB32F 0x8815 GL_RGB32F
Qt3DRender::QAbstractTexture::RGBA32F 0x8814 GL_RGBA32F
Qt3DRender::QAbstractTexture::RGB9E5 0x8C3D GL_RGB9_E5
Qt3DRender::QAbstractTexture::RG11B10F 0x8C3A GL_R11F_G11F_B10F
Qt3DRender::QAbstractTexture::RG3B2 0x2A10 GL_R3_G3_B2
Qt3DRender::QAbstractTexture::R5G6B5 0x8D62 GL_RGB565
Qt3DRender::QAbstractTexture::RGB5A1 0x8057 GL_RGB5_A1
Qt3DRender::QAbstractTexture::RGBA4 0x8056 GL_RGBA4
Qt3DRender::QAbstractTexture::RGB10A2 0x906F GL_RGB10_A2UI
Qt3DRender::QAbstractTexture::D16 0x81A5 GL_DEPTH_COMPONENT16
Qt3DRender::QAbstractTexture::D24 0x81A6 GL_DEPTH_COMPONENT24
Qt3DRender::QAbstractTexture::D24S8 0x88F0 GL_DEPTH24_STENCIL8
Qt3DRender::QAbstractTexture::D32 0x81A7 GL_DEPTH_COMPONENT32
Qt3DRender::QAbstractTexture::D32F 0x8CAC GL_DEPTH_COMPONENT32F
Qt3DRender::QAbstractTexture::D32FS8X24 0x8CAD GL_DEPTH32F_STENCIL8
Qt3DRender::QAbstractTexture::RGB_DXT1 0x83F0 GL_COMPRESSED_RGB_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT1 0x83F1 GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT3 0x83F2 GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT5 0x83F3 GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
Qt3DRender::QAbstractTexture::R_ATI1N_UNorm 0x8DBB GL_COMPRESSED_RED_RGTC1
Qt3DRender::QAbstractTexture::R_ATI1N_SNorm 0x8DBC GL_COMPRESSED_SIGNED_RED_RGTC1
Qt3DRender::QAbstractTexture::RG_ATI2N_UNorm 0x8DBD GL_COMPRESSED_RG_RGTC2
Qt3DRender::QAbstractTexture::RG_ATI2N_SNorm 0x8DBE GL_COMPRESSED_SIGNED_RG_RGTC2
Qt3DRender::QAbstractTexture::RGB_BP_UNSIGNED_FLOAT 0x8E8F GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB
Qt3DRender::QAbstractTexture::RGB_BP_SIGNED_FLOAT 0x8E8E GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB
Qt3DRender::QAbstractTexture::RGB_BP_UNorm 0x8E8C GL_COMPRESSED_RGBA_BPTC_UNORM_ARB
Qt3DRender::QAbstractTexture::R11_EAC_UNorm 0x9270 GL_COMPRESSED_R11_EAC
Qt3DRender::QAbstractTexture::R11_EAC_SNorm 0x9271 GL_COMPRESSED_SIGNED_R11_EAC
Qt3DRender::QAbstractTexture::RG11_EAC_UNorm 0x9272 GL_COMPRESSED_RG11_EAC
Qt3DRender::QAbstractTexture::RG11_EAC_SNorm 0x9273 GL_COMPRESSED_SIGNED_RG11_EAC
Qt3DRender::QAbstractTexture::RGB8_ETC2 0x9274 GL_COMPRESSED_RGB8_ETC2
Qt3DRender::QAbstractTexture::SRGB8_ETC2 0x9275 GL_COMPRESSED_SRGB8_ETC2
Qt3DRender::QAbstractTexture::RGB8_PunchThrough_Alpha1_ETC2 0x9276 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3DRender::QAbstractTexture::SRGB8_PunchThrough_Alpha1_ETC2 0x9277 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3DRender::QAbstractTexture::RGBA8_ETC2_EAC 0x9278 GL_COMPRESSED_RGBA8_ETC2_EAC
Qt3DRender::QAbstractTexture::SRGB8_Alpha8_ETC2_EAC 0x9279 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
Qt3DRender::QAbstractTexture::RGB8_ETC1 0x8D64 GL_ETC1_RGB8_OES
Qt3DRender::QAbstractTexture::SRGB8 0x8C41 GL_SRGB8
Qt3DRender::QAbstractTexture::SRGB8_Alpha8 0x8C43 GL_SRGB8_ALPHA8
Qt3DRender::QAbstractTexture::SRGB_DXT1 0x8C4C GL_COMPRESSED_SRGB_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT1 0x8C4D GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT3 0x8C4E GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT5 0x8C4F GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
Qt3DRender::QAbstractTexture::SRGB_BP_UNorm 0x8E8D GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB
Qt3DRender::QAbstractTexture::DepthFormat 0x1902 GL_DEPTH_COMPONENT
Qt3DRender::QAbstractTexture::AlphaFormat 0x1906 GL_ALPHA
Qt3DRender::QAbstractTexture::RGBFormat 0x1907 GL_RGB
Qt3DRender::QAbstractTexture::RGBAFormat 0x1908 GL_RGBA
Qt3DRender::QAbstractTexture::LuminanceFormat 0x1909 GL_LUMINANCE
Qt3DRender::QAbstractTexture::LuminanceAlphaFormat 0x190A 0x190A

特性文档编制

comparisonFunction : ComparisonFunction

Holds the comparison function of the texture provider.

访问函数:

ComparisonFunction comparisonFunction () const
void setComparisonFunction (ComparisonFunction function )

通知程序信号:

void comparisonFunctionChanged (ComparisonFunction comparisonFunction )

comparisonMode : ComparisonMode

Holds the comparison mode of the texture provider.

访问函数:

ComparisonMode comparisonMode () const
void setComparisonMode (ComparisonMode mode )

通知程序信号:

void comparisonModeChanged (ComparisonMode comparisonMode )

depth : int

Holds the depth of the texture provider.

访问函数:

int depth () const
void setDepth (int depth )

通知程序信号:

void depthChanged (int depth )

format : TextureFormat

Holds the format of the texture provider.

访问函数:

TextureFormat format () const
void setFormat (TextureFormat format )

通知程序信号:

void formatChanged (TextureFormat format )

generateMipMaps : bool

Holds whether the texture provider should auto generate mipmaps.

访问函数:

bool generateMipMaps () const
void setGenerateMipMaps (bool gen )

通知程序信号:

void generateMipMapsChanged (bool generateMipMaps )

height : int

Holds the height of the texture provider.

访问函数:

int height () const
void setHeight (int height )

通知程序信号:

void heightChanged (int height )

layers : int

Holds the maximum layer count of the texture provider. By default, the maximum layer count is 1.

注意: this has a meaning only for texture providers that have 3D or array target formats.

访问函数:

int layers () const
void setLayers (int layers )

通知程序信号:

void layersChanged (int layers )

magnificationFilter : Filter

Holds the magnification filter of the texture provider.

访问函数:

Filter magnificationFilter () const
void setMagnificationFilter (Filter f )

通知程序信号:

void magnificationFilterChanged (Filter magnificationFilter )

maximumAnisotropy : float

Holds the maximum anisotropy of the texture provider.

访问函数:

float maximumAnisotropy () const
void setMaximumAnisotropy (float anisotropy )

通知程序信号:

void maximumAnisotropyChanged (float maximumAnisotropy )

minificationFilter : Filter

Holds the minification filter of the texture provider.

访问函数:

Filter minificationFilter () const
void setMinificationFilter (Filter f )

通知程序信号:

void minificationFilterChanged (Filter minificationFilter )

samples : int

Holds the number of samples per texel for the texture provider. By default, the number of samples is 1.

注意: this has a meaning only for texture providers that have multisample formats.

访问函数:

int samples () const
void setSamples (int samples )

通知程序信号:

void samplesChanged (int samples )

status : const Status

Holds the current status of the texture provider.

访问函数:

状态 status () const

通知程序信号:

void statusChanged (Status status )

target : const Target

Holds the target format of the texture provider.

注意: The target format can only be set once.

访问函数:

Target target () const

width : int

Holds the width of the texture provider.

访问函数:

int width () const
void setWidth (int width )

通知程序信号:

void widthChanged (int width )

wrapMode : Qt3DRender::QTextureWrapMode * const

Holds the wrap mode of the texture provider.

访问函数:

QTextureWrapMode * wrapMode ()

成员函数文档编制

[protected] QAbstractTexture:: QAbstractTexture ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QAbstractTexture.

[protected] QAbstractTexture:: QAbstractTexture ( Target target , Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QAbstractTexture.

[protected] QAbstractTexture:: QAbstractTexture ( QAbstractTexturePrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

void QAbstractTexture:: addTextureImage ( QAbstractTextureImage * textureImage )

Adds a new Qt3DCore::QAbstractTextureImage textureImage to the texture provider.

注意: Qt3DRender::QAbstractTextureImage should never be shared between multiple Qt3DRender::QAbstractTexture 实例。

ComparisonFunction QAbstractTexture:: comparisonFunction () const

Returns the current comparison function.

注意: Getter 函数对于特性 comparisonFunction .

另请参阅 setComparisonFunction ().

ComparisonMode QAbstractTexture:: comparisonMode () const

Returns the current comparison mode.

注意: Getter 函数对于特性 comparisonMode .

另请参阅 setComparisonMode ().

QTextureGeneratorPtr QAbstractTexture:: dataGenerator () const

Returns the current data generator.

int QAbstractTexture:: depth () const

Returns the depth of the texture

注意: Getter 函数对于特性 depth .

另请参阅 setDepth ().

TextureFormat QAbstractTexture:: format () const

Returns the texture provider's format.

注意: Getter 函数对于特性 format .

另请参阅 setFormat ().

int QAbstractTexture:: height () const

Returns the height of the texture

注意: Getter 函数对于特性 height .

另请参阅 setHeight ().

int QAbstractTexture:: layers () const

Returns the maximum number of layers for the texture provider.

注意: this has a meaning only for texture providers that have 3D or array target formats.

注意: Getter 函数对于特性 layers .

另请参阅 setLayers ().

float QAbstractTexture:: maximumAnisotropy () const

Returns the current maximum anisotropy

注意: Getter 函数对于特性 maximumAnisotropy .

另请参阅 setMaximumAnisotropy ().

void QAbstractTexture:: removeTextureImage ( QAbstractTextureImage * textureImage )

Removes a Qt3DCore::QAbstractTextureImage textureImage from the texture provider.

int QAbstractTexture:: samples () const

Returns the number of samples per texel for the texture provider.

注意: this has a meaning only for texture providers that have multisample formats.

注意: Getter 函数对于特性 samples .

另请参阅 setSamples ().

[slot] void QAbstractTexture:: setComparisonFunction ( ComparisonFunction function )

Set the comparison function to function .

注意: Setter 函数对于特性 comparisonFunction .

另请参阅 comparisonFunction ().

[slot] void QAbstractTexture:: setComparisonMode ( ComparisonMode mode )

Set the comparison mode to mode .

注意: Setter 函数对于特性 comparisonMode .

另请参阅 comparisonMode ().

[slot] void QAbstractTexture:: setDepth ( int depth )

Set the depth of the texture to depth .

注意: Setter 函数对于特性 depth .

另请参阅 depth ().

[slot] void QAbstractTexture:: setFormat ( TextureFormat format )

Set the texture format to format .

注意: Setter 函数对于特性 format .

另请参阅 format ().

[slot] void QAbstractTexture:: setGenerateMipMaps ( bool gen )

Boolean parameter gen sets a flag indicating whether the texture provider should generate mipmaps or not.

注意: Setter 函数对于特性 generateMipMaps .

另请参阅 generateMipMaps ().

[slot] void QAbstractTexture:: setHeight ( int height )

Set the height to height .

注意: Setter 函数对于特性 height .

另请参阅 height ().

[slot] void QAbstractTexture:: setLayers ( int layers )

Set the maximum layer count to layers .

注意: Setter 函数对于特性 layers .

另请参阅 layers ().

[slot] void QAbstractTexture:: setMagnificationFilter ( Filter f )

Set the magnification filter to f .

注意: Setter 函数对于特性 magnificationFilter .

另请参阅 magnificationFilter ().

[slot] void QAbstractTexture:: setMaximumAnisotropy ( float anisotropy )

Sets the maximum anisotropy to anisotropy .

注意: Setter 函数对于特性 maximumAnisotropy .

另请参阅 maximumAnisotropy ().

[slot] void QAbstractTexture:: setMinificationFilter ( Filter f )

Set the minification filter to the specified value f .

注意: Setter 函数对于特性 minificationFilter .

另请参阅 minificationFilter ().

[slot] void QAbstractTexture:: setSamples ( int samples )

Set the number of samples per texel to samples .

注意: Setter 函数对于特性 samples .

另请参阅 samples ().

void QAbstractTexture:: setSize ( int w , int h = 1, int d = 1)

Sets the size of the texture provider to width w , height h and depth d .

[protected] void QAbstractTexture:: setStatus ( Status status )

Set the status of the texture provider to the specified status .

另请参阅 status ().

[slot] void QAbstractTexture:: setWidth ( int width )

Set the width of the texture provider to width .

注意: Setter 函数对于特性 width .

另请参阅 width ().

void QAbstractTexture:: setWrapMode (const QTextureWrapMode & wrapMode )

Set the wrapmode to the value specified in wrapMode .

另请参阅 wrapMode ().

Status QAbstractTexture:: status () const

Returns the current status of the texture provider.

注意: Getter 函数对于特性 status .

另请参阅 setStatus ().

Target QAbstractTexture:: target () const

Returns the target format of the texture provider.

注意: Getter 函数对于特性 target .

QVector < QAbstractTextureImage *> QAbstractTexture:: textureImages () const

Returns a list of pointers to QAbstractTextureImage objects contained in the texture provider.

int QAbstractTexture:: width () const

Returns the width of the texture

注意: Getter 函数对于特性 width .

另请参阅 setWidth ().