TextureData /

#includecinder/gl/Texture.h

Public Member Functions

  • TextureData ()
  • GLint
    getWidth () const
  • void
    setWidth (GLint width)
  • GLint
    getHeight () const
  • void
    setHeight (GLint height)
  • GLint
    getDepth () const
  • void
    setDepth (GLint depth)
  • GLint
    getNumFaces () const
  • void
    setNumFaces (GLint numFaces)
  • bool
    isCompressed () const
  • GLint
    getInternalFormat () const
  • void
    setInternalFormat (GLint internalFormat)
  • GLenum
    getDataFormat () const
  • void
    setDataFormat (GLenum dataFormat)
  • GLenum
    getDataType () const
  • void
    setDataType (GLenum dataType)
  • GLint
    getUnpackAlignment () const
  • void
    setUnpackAlignment (GLint unpackAlignment)
  • const std::array< GLint, 4 > &
    getSwizzleMask () const
  • void
    setSwizzleMask (const std::array< GLint, 4 > &swizzleMask)
  • size_t
    getNumLevels () const
  • const std::vector< Level > &
    getLevels () const
  • std::vector< Level > &
    getLevels ()
  • back ()
  • void
    push_back (const Level &level)
  • void
    clear ()
  • void
    allocateDataStore (size_t requireBytes)
  • size_t
    getDataStoreSize () const
  • void *
    getDataStorePtr (size_t offset) const
  • void
    mapDataStore ()
  • void
    unmapDataStore ()