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 41 of file qopengltexture_p.h.

Constructor & Destructor Documentation

◆ QOpenGLTexturePrivate()

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

Definition at line 23 of file qopengltexture.cpp.

◆ ~QOpenGLTexturePrivate()

QOpenGLTexturePrivate::~QOpenGLTexturePrivate ( )

Definition at line 103 of file qopengltexture.cpp.

References destroy().

Here is the call graph for this function:

Member Function Documentation

◆ allocateImmutableStorage()

void QOpenGLTexturePrivate::allocateImmutableStorage ( )

Definition at line 1234 of file qopengltexture.cpp.

References dimensions, fixedSamplePositions, layers, mipLevels, samples, storageAllocated, and texFuncs.

Referenced by allocateStorage().

Here is the caller graph for this function:

◆ allocateMutableStorage()

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

Definition at line 1083 of file qopengltexture.cpp.

References dimensions, fixedSamplePositions, layers, mipLevels, mipLevelSize(), samples, storageAllocated, and texFuncs.

Here is the call graph for this function:

◆ allocateStorage()

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

Definition at line 473 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 212 of file qopengltexture.cpp.

References functions.

◆ bind() [2/2]

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

Definition at line 217 of file qopengltexture.cpp.

References functions, and texFuncs.

◆ create()

bool QOpenGLTexturePrivate::create ( )

Definition at line 125 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 1837 of file qopengltexture.cpp.

References texFuncs.

◆ destroy()

void QOpenGLTexturePrivate::destroy ( )

Definition at line 154 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 269 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 108 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 248 of file qopengltexture.cpp.

References functions.

◆ isBound() [2/2]

bool QOpenGLTexturePrivate::isBound ( uint unit) const

Definition at line 255 of file qopengltexture.cpp.

References functions, and texFuncs.

◆ isUsingImmutableStorage()

bool QOpenGLTexturePrivate::isUsingImmutableStorage ( ) const

Definition at line 462 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 88 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 93 of file qopengltexture_p.h.

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

Here is the caller graph for this function:

◆ release() [1/2]

void QOpenGLTexturePrivate::release ( )

Definition at line 230 of file qopengltexture.cpp.

References functions.

◆ release() [2/2]

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

Definition at line 235 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 1548 of file qopengltexture.cpp.

References autoGenerateMipMaps, dimensions, isUsingImmutableStorage(), mipLevels, mipLevelSize(), and texFuncs.

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 1328 of file qopengltexture.cpp.

References autoGenerateMipMaps, dimensions, mipLevels, mipLevelSize(), and texFuncs.

Here is the call graph for this function:

◆ 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 1432 of file qopengltexture.cpp.

References autoGenerateMipMaps, mipLevels, and texFuncs.

◆ setWrapMode() [1/2]

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

Definition at line 1718 of file qopengltexture.cpp.

References texFuncs.

◆ setWrapMode() [2/2]

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

Definition at line 1687 of file qopengltexture.cpp.

References texFuncs.

◆ wrapMode()

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

Definition at line 1782 of file qopengltexture.cpp.

Member Data Documentation

◆ autoGenerateMipMaps

bool QOpenGLTexturePrivate::autoGenerateMipMaps

Definition at line 134 of file qopengltexture_p.h.

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

◆ baseLevel

int QOpenGLTexturePrivate::baseLevel

Definition at line 116 of file qopengltexture_p.h.

Referenced by destroy().

◆ bindingTarget

QOpenGLTexture::BindingTarget QOpenGLTexturePrivate::bindingTarget

Definition at line 103 of file qopengltexture_p.h.

◆ borderColor

QVariantList QOpenGLTexturePrivate::borderColor

Definition at line 128 of file qopengltexture_p.h.

◆ comparisonFunction

QOpenGLTexture::ComparisonFunction QOpenGLTexturePrivate::comparisonFunction

Definition at line 121 of file qopengltexture_p.h.

◆ comparisonMode

QOpenGLTexture::ComparisonMode QOpenGLTexturePrivate::comparisonMode

Definition at line 122 of file qopengltexture_p.h.

◆ context

◆ depthStencilMode

QOpenGLTexture::DepthStencilMode QOpenGLTexturePrivate::depthStencilMode

Definition at line 120 of file qopengltexture_p.h.

◆ dimensions

int QOpenGLTexturePrivate::dimensions[3]

◆ faces

int QOpenGLTexturePrivate::faces

Definition at line 111 of file qopengltexture_p.h.

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

◆ features

QOpenGLTexture::Features QOpenGLTexturePrivate::features

◆ fixedSamplePositions

bool QOpenGLTexturePrivate::fixedSamplePositions

◆ format

QOpenGLTexture::TextureFormat QOpenGLTexturePrivate::format

Definition at line 105 of file qopengltexture_p.h.

◆ formatClass

QOpenGLTexture::TextureFormatClass QOpenGLTexturePrivate::formatClass

Definition at line 106 of file qopengltexture_p.h.

◆ functions

QOpenGLFunctions* QOpenGLTexturePrivate::functions

Definition at line 138 of file qopengltexture_p.h.

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

◆ layers

int QOpenGLTexturePrivate::layers

◆ levelOfDetailBias

float QOpenGLTexturePrivate::levelOfDetailBias

Definition at line 131 of file qopengltexture_p.h.

Referenced by destroy().

◆ magFilter

QOpenGLTexture::Filter QOpenGLTexturePrivate::magFilter

Definition at line 125 of file qopengltexture_p.h.

◆ maxAnisotropy

float QOpenGLTexturePrivate::maxAnisotropy

Definition at line 126 of file qopengltexture_p.h.

Referenced by destroy().

◆ maxLevel

int QOpenGLTexturePrivate::maxLevel

Definition at line 117 of file qopengltexture_p.h.

Referenced by destroy().

◆ maxLevelOfDetail

float QOpenGLTexturePrivate::maxLevelOfDetail

Definition at line 130 of file qopengltexture_p.h.

Referenced by destroy().

◆ minFilter

QOpenGLTexture::Filter QOpenGLTexturePrivate::minFilter

Definition at line 124 of file qopengltexture_p.h.

◆ minLevelOfDetail

float QOpenGLTexturePrivate::minLevelOfDetail

Definition at line 129 of file qopengltexture_p.h.

Referenced by destroy().

◆ mipLevels

int QOpenGLTexturePrivate::mipLevels

◆ q_ptr

QOpenGLTexture* QOpenGLTexturePrivate::q_ptr

Definition at line 100 of file qopengltexture_p.h.

◆ requestedMipLevels

int QOpenGLTexturePrivate::requestedMipLevels

Definition at line 108 of file qopengltexture_p.h.

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

◆ samples

int QOpenGLTexturePrivate::samples

◆ storageAllocated

bool QOpenGLTexturePrivate::storageAllocated

Definition at line 135 of file qopengltexture_p.h.

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

◆ swizzleMask

QOpenGLTexture::SwizzleValue QOpenGLTexturePrivate::swizzleMask[4]

Definition at line 119 of file qopengltexture_p.h.

◆ target

QOpenGLTexture::Target QOpenGLTexturePrivate::target

Definition at line 102 of file qopengltexture_p.h.

◆ texFuncs

◆ textureId

GLuint QOpenGLTexturePrivate::textureId

Definition at line 104 of file qopengltexture_p.h.

◆ textureView

bool QOpenGLTexturePrivate::textureView

Definition at line 133 of file qopengltexture_p.h.

Referenced by destroy().

◆ wrapModes

QOpenGLTexture::WrapMode QOpenGLTexturePrivate::wrapModes[3]

Definition at line 127 of file qopengltexture_p.h.


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