Lines Matching refs:mRSC
49 … error = FT_New_Memory_Face(mRSC->mStateFont.getLib(), (const FT_Byte*)data, dataLen, 0, &mFace); in init()
51 error = FT_New_Face(mRSC->mStateFont.getLib(), name, 0, &mFace); in init()
77 for (uint32_t ct = 0; ct < mRSC->mStateFont.mActiveFonts.size(); ct++) { in preDestroy()
78 if (mRSC->mStateFont.mActiveFonts[ct] == this) { in preDestroy()
79 mRSC->mStateFont.mActiveFonts.removeAt(ct); in preDestroy()
92 FontState *state = &mRSC->mStateFont; in drawCachedGlyph()
119 FontState *state = &mRSC->mStateFont; in drawCachedGlyph()
257 FontState *state = &mRSC->mStateFont; in updateGlyphCache()
335 mRSC = NULL; in FontState()
393 mRSC = rsc; in init()
470 mRSC->mHal.funcs.allocation.data2D(mRSC, mTextTexture.get(), 0, 0, 0, in cacheBitmap()
474 mFontShaderF->bindTexture(mRSC, 0, mTextTexture.get()); in cacheBitmap()
501 ObjectBaseRef<const Element> colorElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, in initRenderState()
503 ObjectBaseRef<const Element> gammaElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, in initRenderState()
508 ObjectBaseRef<const Element> constInput = builder.create(mRSC); in initRenderState()
510 …ObjectBaseRef<Type> inputType = Type::getTypeRef(mRSC, constInput.get(), 1, 0, 0, false, false, 0); in initRenderState()
518 mFontShaderFConstant.set(Allocation::createAllocation(mRSC, inputType.get(), in initRenderState()
521 ProgramFragment *pf = new ProgramFragment(mRSC, shaderString.string(), shaderString.length(), in initRenderState()
525 mFontShaderF->bindAllocation(mRSC, mFontShaderFConstant.get(), 0); in initRenderState()
527 mFontSampler.set(Sampler::getSampler(mRSC, RS_SAMPLER_NEAREST, RS_SAMPLER_NEAREST, in initRenderState()
530 mFontShaderF->bindSampler(mRSC, 0, mFontSampler.get()); in initRenderState()
532 mFontProgramStore.set(ProgramStore::getProgramStore(mRSC, true, true, true, true, in initRenderState()
541 ObjectBaseRef<const Element> alphaElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_8, in initTextTexture()
547 ObjectBaseRef<Type> texType = Type::getTypeRef(mRSC, alphaElem.get(), in initTextTexture()
552 Allocation *cacheAlloc = Allocation::createAllocation(mRSC, texType.get(), in initTextTexture()
576 …ObjectBaseRef<const Element> indexElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_16, RS_KIND_USE… in initVertexArrayBuffers()
578 …ObjectBaseRef<Type> indexType = Type::getTypeRef(mRSC, indexElem.get(), numIndicies, 0, 0, false, … in initVertexArrayBuffers()
580 Allocation *indexAlloc = Allocation::createAllocation(mRSC, indexType.get(), in initVertexArrayBuffers()
583 uint16_t *indexPtr = (uint16_t*)mRSC->mHal.funcs.allocation.lock1D(mRSC, indexAlloc); in initVertexArrayBuffers()
599 indexAlloc->sendDirty(mRSC); in initVertexArrayBuffers()
601 …ObjectBaseRef<const Element> posElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers()
602 …ObjectBaseRef<const Element> texElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers()
607 ObjectBaseRef<const Element> vertexDataElem = builder.create(mRSC); in initVertexArrayBuffers()
609 ObjectBaseRef<Type> vertexDataType = Type::getTypeRef(mRSC, vertexDataElem.get(), in initVertexArrayBuffers()
613 Allocation *vertexAlloc = Allocation::createAllocation(mRSC, vertexDataType.get(), in initVertexArrayBuffers()
615 mTextMeshPtr = (float*)mRSC->mHal.funcs.allocation.lock1D(mRSC, vertexAlloc); in initVertexArrayBuffers()
617 mMesh.set(new Mesh(mRSC, 1, 1)); in initVertexArrayBuffers()
621 mRSC->mHal.funcs.allocation.unlock1D(mRSC, indexAlloc); in initVertexArrayBuffers()
622 mRSC->mHal.funcs.allocation.unlock1D(mRSC, vertexAlloc); in initVertexArrayBuffers()
646 Context::PushState ps(mRSC); in issueDrawCommand()
648 mRSC->setProgramVertex(mRSC->getDefaultProgramVertex()); in issueDrawCommand()
649 mRSC->setProgramRaster(mRSC->getDefaultProgramRaster()); in issueDrawCommand()
650 mRSC->setProgramFragment(mFontShaderF.get()); in issueDrawCommand()
651 mRSC->setProgramStore(mFontProgramStore.get()); in issueDrawCommand()
654 mFontShaderFConstant->data(mRSC, 0, 0, 1, &mConstants, sizeof(mConstants)); in issueDrawCommand()
658 if (!mRSC->setupCheck()) { in issueDrawCommand()
662 mMesh->renderPrimitiveRange(mRSC, 0, 0, mCurrentQuadIndex * 6); in issueDrawCommand()
753 Font *currentFont = mRSC->getFont(); in renderText()
760 mDefault.set(Font::create(mRSC, fullPath.string(), 8, mRSC->getDPI())); in renderText()
770 mSurfaceWidth = (float)mRSC->getCurrentSurfaceWidth(); in renderText()
771 mSurfaceHeight = (float)mRSC->getCurrentSurfaceHeight(); in renderText()