Definition at line 17 of file PureTextureImpl.h.
#include <PureTextureImpl.h>
◆ ~PureTextureImpl()
PureTexture::PureTextureImpl::~PureTextureImpl |
( |
| ) |
|
|
virtual |
◆ PureTextureImpl() [1/3]
PureTexture::PureTextureImpl::PureTextureImpl |
( |
PureTexture * | owner | ) |
|
|
private |
◆ PureTextureImpl() [2/3]
◆ PureTextureImpl() [3/3]
◆ actualUploadProc()
TPureBool PureTexture::PureTextureImpl::actualUploadProc |
( |
GLint | internalfmt, |
|
|
GLenum | glTexFormat ) |
|
private |
This contains the actual pixel upload code.
The following properties of the given texture object should be set properly before calling this method:
- nMIPmapCount: should be a positive value; if 1, no MIP maps will be generated, otherwise MIP maps will be generated.
- nWidth, nHeight: although not used by this method (because the method uses sizes of the given Image), it is recommended to be already defined.
- Parameters
-
- Returns
- True on success, false on error.
Definition at line 612 of file PureTexture.cpp.
◆ DescribeTexFormatAndSize()
void PureTexture::PureTextureImpl::DescribeTexFormatAndSize |
( |
GLint | internalfmt | ) |
|
|
private |
Updates texFormat and nSize members based on given internalfmt.
Internal format (texFormat) and used texture memory (nSize) will be updated based on given internalfmt.
This is needed so that real size and compression is queried from OpenGL after the texture has been uploaded. Not doing much when software rendering is selected.
Definition at line 670 of file PureTexture.cpp.
◆ getAnisoFilteringMode()
◆ getBorder()
TPureBool PureTexture::PureTextureImpl::getBorder |
( |
| ) |
const |
◆ getBorderColor()
const PureColor & PureTexture::PureTextureImpl::getBorderColor |
( |
| ) |
const |
◆ getGLnameFromPureisoTexFilteringName()
Gets the GL enum value that corresponds to the given Pure iso texture filtering value.
- Returns
- A GL texture filtering enum value corresponding to the given value. GL_LINEAR if invalid value is given.
Definition at line 109 of file PureTexture.cpp.
◆ getGLnameFromPuretexWrappingName()
GLenum PureTexture::PureTextureImpl::getGLnameFromPuretexWrappingName |
( |
TPURE_TEX_WRAPPING | value | ) |
|
|
static |
Gets the GL enum value that corresponds to the given Pure texture wrapping mode value.
- Returns
- A GL texture wrapping enum value corresponding to the given value. GL_REPEAT if invalid value is given.
Definition at line 148 of file PureTexture.cpp.
◆ getInternalFormat()
◆ getInternalNum()
GLuint PureTexture::PureTextureImpl::getInternalNum |
( |
| ) |
const |
◆ getMagFilteringMode()
◆ getMinFilteringMode()
◆ getMIPmapCount()
TPureUInt PureTexture::PureTextureImpl::getMIPmapCount |
( |
| ) |
const |
◆ getPureisoTexFilteringNameFromGLname()
Gets the Pure iso texture filtering value that corresponds to the given GL enum value.
- Returns
- A GL texture filtering enum value corresponding to the given value. PURE_ISO_LINEAR if invalid value is given.
Definition at line 89 of file PureTexture.cpp.
◆ getPuretexWrappingNameFromGLname()
TPURE_TEX_WRAPPING PureTexture::PureTextureImpl::getPuretexWrappingNameFromGLname |
( |
GLenum | value | ) |
|
|
static |
Gets the Pure texture wrapping mode value that corresponds to the given GL enum value.
- Returns
- A Pure texture wrapping mode value corresponding to the given GL value. PURE_TW_REPEAT if invalid value is given.
Definition at line 129 of file PureTexture.cpp.
◆ getTargetInternalFormat()
GLint PureTexture::PureTextureImpl::getTargetInternalFormat |
( |
| ) |
|
|
private |
Figures out the target internal format.
Used when uploading pixels as a texture to the VGA.
- Returns
- OpenGL target internal format for storing texture in VRAM.
Definition at line 575 of file PureTexture.cpp.
◆ getTextureWrappingModeS()
◆ getTextureWrappingModeT()
◆ getTransformedSourceFormat()
Transforms to a proper pixel component order and returns the source format.
Transforms to a proper pixel component order and returns the proper OpenGL source format.
For example, if the image's color component order is PURE_BGR and OpenGL driver supports that format natively, no transform is needed, respective OpenGL source format will be returned quickly. However if driver doesn't have support for that, then color component order first gets transformed to PURE_RGB, and then respective OpenGL source format will be returned.
- Returns
- OpenGL source format enum. GL_INVALID_ENUM in case of error.
Definition at line 521 of file PureTexture.cpp.
◆ getUsedSystemMemory()
TPureUInt PureTexture::PureTextureImpl::getUsedSystemMemory |
( |
| ) |
const |
|
virtual |
◆ getUsedTextureMemory()
TPureUInt PureTexture::PureTextureImpl::getUsedTextureMemory |
( |
| ) |
const |
◆ operator=()
◆ setAnisoFilteringMode()
◆ setBorder()
◆ setBorderColor()
◆ setIsoFilteringMode()
◆ setMagFilteringMode()
◆ setMinFilteringMode()
◆ setTextureWrappingMode()
◆ uploadPixels()
TPureBool PureTexture::PureTextureImpl::uploadPixels |
( |
| ) |
|
◆ PureTexture
◆ PureTextureManager
◆ _pOwner
The owner public object who creates this pimpl object.
Definition at line 78 of file PureTextureImpl.h.
◆ bBorder
TPureBool PureTexture::PureTextureImpl::bBorder |
|
private |
◆ clrBorder
PureColor PureTexture::PureTextureImpl::clrBorder |
|
private |
◆ filtAniso
◆ filtIsoMag
Isotropic filtering mode when zooming in (1 texel > 1 pixel).
Definition at line 83 of file PureTextureImpl.h.
◆ filtIsoMin
Isotropic filtering mode when zooming out (1 texel < 1 pixel).
Definition at line 82 of file PureTextureImpl.h.
◆ nInternalNum
GLuint PureTexture::PureTextureImpl::nInternalNum |
|
private |
◆ nMIPmapCount
TPureUInt PureTexture::PureTextureImpl::nMIPmapCount |
|
private |
◆ nSize
TPureUInt PureTexture::PureTextureImpl::nSize |
|
private |
Amount of VRAM allocated (considering compression, MIP mapping, etc...).
Definition at line 80 of file PureTextureImpl.h.
◆ texCompr
◆ texFormat
◆ twS
◆ twT
Texture wrapping mode for S- and T- texture coordinates.
Definition at line 90 of file PureTextureImpl.h.
The documentation for this class was generated from the following files:
- C:/__PR00F__/___developing___/projects/PGE/PGE/PURE/include/internal/Material/PureTextureImpl.h
- C:/__PR00F__/___developing___/projects/PGE/PGE/PURE/source/Material/PureTexture.cpp