のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Searched full:"caches : : getinstance"

    111 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) :
    112             mTexture(NULL), mTextureId(0), mWidth(width), mHeight(height), mFormat(format),
    113             mLinearFiltering(false), mDirty(false), mNumGlyphs(0),
    114             mMesh(NULL), mCurrentQuad(0), mMaxQuadCount(maxQuadCount),
    115             mCaches(Caches::getInstance())  <=====
        {
    116     mCacheBlocks = new CacheBlock(TEXTURE_BORDER_SIZE, TEXTURE_BORDER_SIZE,
    117             mWidth - TEXTURE_BORDER_SIZE, mHeight - TEXTURE_BORDER_SIZE, true);
    118 
    119     // OpenGL ES 3.0+ lets us specify the row length for unpack operations such
    120     // as glTexSubImage2D(). This allows us to upload a sub-rectangle of a texture.
    121     // With OpenGL ES 2.0 we have to upload entire stripes instead.
    122     mHasUnpackRowLength = Extensions::getInstance().hasUnpackRowLength();
    123 }