Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOpenGLTexturePrivate Class Reference

#include <qopengltexture_p.h>

Collaboration diagram for QOpenGLTexturePrivate:

Public Member Functions

 QOpenGLTexturePrivate (QOpenGLTexture::Target textureTarget, QOpenGLTexture *qq)
 ~QOpenGLTexturePrivate ()
void resetFuncs (QOpenGLTextureHelper *funcs)
void initializeOpenGLFunctions ()
bool create ()
void destroy ()
void bind ()
void bind (uint unit, QOpenGLTexture::TextureUnitReset reset=QOpenGLTexture::DontResetTextureUnit)
void release ()
void release (uint unit, QOpenGLTexture::TextureUnitReset reset=QOpenGLTexture::DontResetTextureUnit)
bool isBound () const
bool isBound (uint unit) const
void allocateStorage (QOpenGLTexture::PixelFormat pixelFormat, QOpenGLTexture::PixelType pixelType)
void allocateMutableStorage (QOpenGLTexture::PixelFormat pixelFormat, QOpenGLTexture::PixelType pixelType)
void allocateImmutableStorage ()
void setData (int mipLevel, int layer, int layerCount, QOpenGLTexture::CubeMapFace cubeFace, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options)
void setData (int xOffset, int yOffset, int zOffset, int width, int height, int depth, int mipLevel, int layer, int layerCount, QOpenGLTexture::CubeMapFace cubeFace, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options)
void setCompressedData (int mipLevel, int layer, int layerCount, QOpenGLTexture::CubeMapFace cubeFace, int dataSize, const void *data, const QOpenGLPixelTransferOptions *const options)
void setWrapMode (QOpenGLTexture::WrapMode mode)
void setWrapMode (QOpenGLTexture::CoordinateDirection direction, QOpenGLTexture::WrapMode mode)
QOpenGLTexture::WrapMode wrapMode (QOpenGLTexture::CoordinateDirection direction) const
QOpenGLTexturecreateTextureView (QOpenGLTexture::Target target, QOpenGLTexture::TextureFormat viewFormat, int minimumMipmapLevel, int maximumMipmapLevel, int minimumLayer, int maximumLayer) const
int evaluateMipLevels () const
int maximumMipLevelCount () const
bool isUsingImmutableStorage () const

Static Public Member Functions

static int mipLevelSize (int mipLevel, int baseLevelSize)

Public Attributes

QOpenGLTextureq_ptr
QOpenGLContextcontext
QOpenGLTexture::Target target
QOpenGLTexture::BindingTarget bindingTarget
GLuint textureId
QOpenGLTexture::TextureFormat format
QOpenGLTexture::TextureFormatClass formatClass
int dimensions [3]
int requestedMipLevels
int mipLevels
int layers
int faces
int samples
bool fixedSamplePositions
int baseLevel
int maxLevel
QOpenGLTexture::SwizzleValue swizzleMask [4]
QOpenGLTexture::DepthStencilMode depthStencilMode
QOpenGLTexture::ComparisonFunction comparisonFunction
QOpenGLTexture::ComparisonMode comparisonMode
QOpenGLTexture::Filter minFilter
QOpenGLTexture::Filter magFilter
float maxAnisotropy
QOpenGLTexture::WrapMode wrapModes [3]
QVariantList borderColor
float minLevelOfDetail
float maxLevelOfDetail
float levelOfDetailBias
bool textureView
bool autoGenerateMipMaps
bool storageAllocated
QOpenGLTextureHelpertexFuncs
QOpenGLFunctionsfunctions
QOpenGLTexture::Features features

Detailed Description

Definition at line 40 of file qopengltexture_p.h.

Constructor & Destructor Documentation

◆ QOpenGLTexturePrivate()

QOpenGLTexturePrivate::QOpenGLTexturePrivate ( QOpenGLTexture::Target textureTarget,
QOpenGLTexture * qq )

Definition at line 22 of file qopengltexture.cpp.

◆ ~QOpenGLTexturePrivate()

QOpenGLTexturePrivate::~QOpenGLTexturePrivate ( )

Definition at line 102 of file qopengltexture.cpp.

References destroy().

Here is the call graph for this function:

Member Function Documentation

◆ allocateImmutableStorage()

void QOpenGLTexturePrivate::allocateImmutableStorage ( )

Definition at line 1233 of file qopengltexture.cpp.

References storageAllocated.

Referenced by allocateStorage().

Here is the caller graph for this function:

◆ allocateMutableStorage()

void QOpenGLTexturePrivate::allocateMutableStorage ( QOpenGLTexture::PixelFormat pixelFormat,
QOpenGLTexture::PixelType pixelType )

Definition at line 1082 of file qopengltexture.cpp.

References mipLevels, and storageAllocated.

◆ allocateStorage()

void QOpenGLTexturePrivate::allocateStorage ( QOpenGLTexture::PixelFormat pixelFormat,
QOpenGLTexture::PixelType pixelType )

Definition at line 472 of file qopengltexture.cpp.

References allocateImmutableStorage(), evaluateMipLevels(), isUsingImmutableStorage(), and mipLevels.

Here is the call graph for this function:

◆ bind() [1/2]

void QOpenGLTexturePrivate::bind ( )

Definition at line 211 of file qopengltexture.cpp.

◆ bind() [2/2]

void QOpenGLTexturePrivate::bind ( uint unit,
QOpenGLTexture::TextureUnitReset reset = QOpenGLTexture::DontResetTextureUnit )

Definition at line 216 of file qopengltexture.cpp.

References functions, and texFuncs.

◆ create()

bool QOpenGLTexturePrivate::create ( )

Definition at line 124 of file qopengltexture.cpp.

References context, functions, and initializeOpenGLFunctions().

Here is the call graph for this function:

◆ createTextureView()

QOpenGLTexture * QOpenGLTexturePrivate::createTextureView ( QOpenGLTexture::Target target,
QOpenGLTexture::TextureFormat viewFormat,
int minimumMipmapLevel,
int maximumMipmapLevel,
int minimumLayer,
int maximumLayer ) const

Definition at line 1836 of file qopengltexture.cpp.

◆ destroy()

void QOpenGLTexturePrivate::destroy ( )

Definition at line 153 of file qopengltexture.cpp.

References autoGenerateMipMaps, baseLevel, context, faces, fixedSamplePositions, functions, layers, levelOfDetailBias, maxAnisotropy, maxLevel, maxLevelOfDetail, minLevelOfDetail, mipLevels, requestedMipLevels, samples, storageAllocated, texFuncs, and textureView.

Referenced by ~QOpenGLTexturePrivate().

Here is the caller graph for this function:

◆ evaluateMipLevels()

int QOpenGLTexturePrivate::evaluateMipLevels ( ) const

Definition at line 268 of file qopengltexture.cpp.

References maximumMipLevelCount(), and requestedMipLevels.

Referenced by allocateStorage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeOpenGLFunctions()

void QOpenGLTexturePrivate::initializeOpenGLFunctions ( )

Definition at line 107 of file qopengltexture.cpp.

References QOpenGLTextureHelper::QOpenGLTextureHelper(), context, and texFuncs.

Referenced by create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBound() [1/2]

bool QOpenGLTexturePrivate::isBound ( ) const

Definition at line 247 of file qopengltexture.cpp.

◆ isBound() [2/2]

bool QOpenGLTexturePrivate::isBound ( uint unit) const

Definition at line 254 of file qopengltexture.cpp.

References functions, and texFuncs.

◆ isUsingImmutableStorage()

bool QOpenGLTexturePrivate::isUsingImmutableStorage ( ) const

Definition at line 461 of file qopengltexture.cpp.

Referenced by allocateStorage(), and setCompressedData().

Here is the caller graph for this function:

◆ maximumMipLevelCount()

int QOpenGLTexturePrivate::maximumMipLevelCount ( ) const
inline

Definition at line 87 of file qopengltexture_p.h.

References dimensions.

Referenced by evaluateMipLevels().

Here is the caller graph for this function:

◆ mipLevelSize()

int QOpenGLTexturePrivate::mipLevelSize ( int mipLevel,
int baseLevelSize )
inlinestatic

Definition at line 92 of file qopengltexture_p.h.

◆ release() [1/2]

void QOpenGLTexturePrivate::release ( )

Definition at line 229 of file qopengltexture.cpp.

◆ release() [2/2]

void QOpenGLTexturePrivate::release ( uint unit,
QOpenGLTexture::TextureUnitReset reset = QOpenGLTexture::DontResetTextureUnit )

Definition at line 234 of file qopengltexture.cpp.

References functions, and texFuncs.

◆ resetFuncs()

void QOpenGLTexturePrivate::resetFuncs ( QOpenGLTextureHelper * funcs)

◆ setCompressedData()

void QOpenGLTexturePrivate::setCompressedData ( int mipLevel,
int layer,
int layerCount,
QOpenGLTexture::CubeMapFace cubeFace,
int dataSize,
const void * data,
const QOpenGLPixelTransferOptions *const options )

Definition at line 1547 of file qopengltexture.cpp.

References autoGenerateMipMaps, isUsingImmutableStorage(), and mipLevels.

Here is the call graph for this function:

◆ setData() [1/2]

void QOpenGLTexturePrivate::setData ( int mipLevel,
int layer,
int layerCount,
QOpenGLTexture::CubeMapFace cubeFace,
QOpenGLTexture::PixelFormat sourceFormat,
QOpenGLTexture::PixelType sourceType,
const void * data,
const QOpenGLPixelTransferOptions *const options )

Definition at line 1327 of file qopengltexture.cpp.

References autoGenerateMipMaps, and mipLevels.

◆ setData() [2/2]

void QOpenGLTexturePrivate::setData ( int xOffset,
int yOffset,
int zOffset,
int width,
int height,
int depth,
int mipLevel,
int layer,
int layerCount,
QOpenGLTexture::CubeMapFace cubeFace,
QOpenGLTexture::PixelFormat sourceFormat,
QOpenGLTexture::PixelType sourceType,
const void * data,
const QOpenGLPixelTransferOptions *const options )

Definition at line 1431 of file qopengltexture.cpp.

References autoGenerateMipMaps, and mipLevels.

◆ setWrapMode() [1/2]

void QOpenGLTexturePrivate::setWrapMode ( QOpenGLTexture::CoordinateDirection direction,
QOpenGLTexture::WrapMode mode )

Definition at line 1717 of file qopengltexture.cpp.

◆ setWrapMode() [2/2]

void QOpenGLTexturePrivate::setWrapMode ( QOpenGLTexture::WrapMode mode)

Definition at line 1686 of file qopengltexture.cpp.

◆ wrapMode()

QOpenGLTexture::WrapMode QOpenGLTexturePrivate::wrapMode ( QOpenGLTexture::CoordinateDirection direction) const

Definition at line 1781 of file qopengltexture.cpp.

Member Data Documentation

◆ autoGenerateMipMaps

bool QOpenGLTexturePrivate::autoGenerateMipMaps

Definition at line 133 of file qopengltexture_p.h.

Referenced by destroy(), setCompressedData(), setData(), and setData().

◆ baseLevel

int QOpenGLTexturePrivate::baseLevel

Definition at line 115 of file qopengltexture_p.h.

Referenced by destroy().

◆ bindingTarget

QOpenGLTexture::BindingTarget QOpenGLTexturePrivate::bindingTarget

Definition at line 102 of file qopengltexture_p.h.

◆ borderColor

QVariantList QOpenGLTexturePrivate::borderColor

Definition at line 127 of file qopengltexture_p.h.

◆ comparisonFunction

QOpenGLTexture::ComparisonFunction QOpenGLTexturePrivate::comparisonFunction

Definition at line 120 of file qopengltexture_p.h.

◆ comparisonMode

QOpenGLTexture::ComparisonMode QOpenGLTexturePrivate::comparisonMode

Definition at line 121 of file qopengltexture_p.h.

◆ context

◆ depthStencilMode

QOpenGLTexture::DepthStencilMode QOpenGLTexturePrivate::depthStencilMode

Definition at line 119 of file qopengltexture_p.h.

◆ dimensions

int QOpenGLTexturePrivate::dimensions[3]

Definition at line 106 of file qopengltexture_p.h.

Referenced by maximumMipLevelCount(), and QOpenGLTexture::operator<<.

◆ faces

int QOpenGLTexturePrivate::faces

Definition at line 110 of file qopengltexture_p.h.

Referenced by destroy(), and QOpenGLTexture::operator<<.

◆ features

QOpenGLTexture::Features QOpenGLTexturePrivate::features

◆ fixedSamplePositions

bool QOpenGLTexturePrivate::fixedSamplePositions

Definition at line 113 of file qopengltexture_p.h.

Referenced by destroy(), and QOpenGLTexture::operator<<.

◆ format

QOpenGLTexture::TextureFormat QOpenGLTexturePrivate::format

Definition at line 104 of file qopengltexture_p.h.

◆ formatClass

QOpenGLTexture::TextureFormatClass QOpenGLTexturePrivate::formatClass

Definition at line 105 of file qopengltexture_p.h.

◆ functions

QOpenGLFunctions* QOpenGLTexturePrivate::functions

Definition at line 137 of file qopengltexture_p.h.

Referenced by bind(), create(), destroy(), isBound(), and release().

◆ layers

int QOpenGLTexturePrivate::layers

Definition at line 109 of file qopengltexture_p.h.

Referenced by destroy(), and QOpenGLTexture::operator<<.

◆ levelOfDetailBias

float QOpenGLTexturePrivate::levelOfDetailBias

Definition at line 130 of file qopengltexture_p.h.

Referenced by destroy().

◆ magFilter

QOpenGLTexture::Filter QOpenGLTexturePrivate::magFilter

Definition at line 124 of file qopengltexture_p.h.

◆ maxAnisotropy

float QOpenGLTexturePrivate::maxAnisotropy

Definition at line 125 of file qopengltexture_p.h.

Referenced by destroy().

◆ maxLevel

int QOpenGLTexturePrivate::maxLevel

Definition at line 116 of file qopengltexture_p.h.

Referenced by destroy().

◆ maxLevelOfDetail

float QOpenGLTexturePrivate::maxLevelOfDetail

Definition at line 129 of file qopengltexture_p.h.

Referenced by destroy().

◆ minFilter

QOpenGLTexture::Filter QOpenGLTexturePrivate::minFilter

Definition at line 123 of file qopengltexture_p.h.

◆ minLevelOfDetail

float QOpenGLTexturePrivate::minLevelOfDetail

Definition at line 128 of file qopengltexture_p.h.

Referenced by destroy().

◆ mipLevels

int QOpenGLTexturePrivate::mipLevels

◆ q_ptr

QOpenGLTexture* QOpenGLTexturePrivate::q_ptr

Definition at line 99 of file qopengltexture_p.h.

◆ requestedMipLevels

int QOpenGLTexturePrivate::requestedMipLevels

Definition at line 107 of file qopengltexture_p.h.

Referenced by destroy(), evaluateMipLevels(), and QOpenGLTexture::operator<<.

◆ samples

int QOpenGLTexturePrivate::samples

Definition at line 112 of file qopengltexture_p.h.

Referenced by destroy(), and QOpenGLTexture::operator<<.

◆ storageAllocated

bool QOpenGLTexturePrivate::storageAllocated

Definition at line 134 of file qopengltexture_p.h.

Referenced by allocateImmutableStorage(), allocateMutableStorage(), and destroy().

◆ swizzleMask

QOpenGLTexture::SwizzleValue QOpenGLTexturePrivate::swizzleMask[4]

Definition at line 118 of file qopengltexture_p.h.

◆ target

QOpenGLTexture::Target QOpenGLTexturePrivate::target

Definition at line 101 of file qopengltexture_p.h.

◆ texFuncs

QOpenGLTextureHelper* QOpenGLTexturePrivate::texFuncs

Definition at line 136 of file qopengltexture_p.h.

Referenced by bind(), destroy(), initializeOpenGLFunctions(), isBound(), and release().

◆ textureId

GLuint QOpenGLTexturePrivate::textureId

Definition at line 103 of file qopengltexture_p.h.

◆ textureView

bool QOpenGLTexturePrivate::textureView

Definition at line 132 of file qopengltexture_p.h.

Referenced by destroy().

◆ wrapModes

QOpenGLTexture::WrapMode QOpenGLTexturePrivate::wrapModes[3]

Definition at line 126 of file qopengltexture_p.h.


The documentation for this class was generated from the following files: