Public Member Functions

  • void
    setCompareMode (GLenum compareMode)
  • void
    setCompareFunc (GLenum compareFunc)

Static Public Member Functions


Protected Member Functions

  • Texture2d (int width, int height, Format format=Format())
  • Texture2d (const void *data, GLenum dataFormat, int width, int height, Format format=Format())
  • Texture2d (const Surface8u &surface, Format format=Format())
  • Texture2d (const Surface16u &surface, Format format=Format())
  • Texture2d (const Surface32f &surface, Format format=Format())
  • Texture2d (const Channel8u &channel, Format format=Format())
  • Texture2d (const Channel16u &channel, Format format=Format())
  • Texture2d (const Channel32f &channel, Format format=Format())
  • Texture2d (const ImageSourceRef &imageSource, Format format=Format())
  • Texture2d (GLenum target, GLuint textureId, int width, int height, bool doNotDispose)
  • Texture2d (const TextureData &data, Format format)
  • void
    printDims (std::ostream &os) const override
  • void
    initParams (Format &format, GLint defaultInternalFormat, GLint defaultDataType)
  • void
    initMaxMipmapLevel ()
  • void
    setData (const SurfaceT< T > &surface, bool createStorage, int mipLevel, const ivec2 &offset)
  • void
    setData (const ChannelT< T > &channel, bool createStorage, int mipLevel, const ivec2 &offset)
  • void
    initData (const void *data, GLenum dataFormat, const Format &format)
  • void
    initData (const ImageSourceRef &imageSource, const Format &format)
  • void
    initDataImageSourceWithPboImpl (const ImageSourceRef &imageSource, const Format &format, GLint dataFormat, GLint dataType, ImageIo::ChannelOrder channelOrder, bool isGray, const PboRef &pbo)
  • void
    initDataImageSourceImpl (const ImageSourceRef &imageSource, const Format &format, GLint dataFormat, GLint dataType, ImageIo::ChannelOrder channelOrder, bool isGray)
  • void
    initParams (Format &format, GLint defaultInternalFormat, GLint defaultDataType)

Protected Attributes

  • ivec2
    mActualSize
  • mCleanBounds
  • bool
    mTopDown
  • GLenum
    mTarget
  • GLuint
    mTextureId
  • GLint
    mInternalFormat
  • bool
    mMipmapping
  • GLint
    mBaseMipmapLevel
  • GLint
    mMaxMipmapLevel
  • bool
    mDoNotDispose
  • std::array< GLint, 4 >
    mSwizzleMask
  • std::string
    mLabel

Friends