• Home
  • Raw
  • Download

Lines Matching refs:mRSC

48 …   error = FT_New_Memory_Face(mRSC->mStateFont.getLib(), (const FT_Byte*)data, dataLen, 0, &mFace);  in init()
50 error = FT_New_Face(mRSC->mStateFont.getLib(), name, 0, &mFace); in init()
76 for (uint32_t ct = 0; ct < mRSC->mStateFont.mActiveFonts.size(); ct++) { in preDestroy()
77 if (mRSC->mStateFont.mActiveFonts[ct] == this) { in preDestroy()
78 mRSC->mStateFont.mActiveFonts.removeAt(ct); in preDestroy()
91 FontState *state = &mRSC->mStateFont; in drawCachedGlyph()
118 FontState *state = &mRSC->mStateFont; in drawCachedGlyph()
256 FontState *state = &mRSC->mStateFont; in updateGlyphCache()
334 mRSC = NULL; in FontState()
392 mRSC = rsc; in init()
469 mTextTexture->sendDirty(mRSC); in cacheBitmap()
470 mFontShaderF->bindTexture(mRSC, 0, mTextTexture.get()); in cacheBitmap()
493 …ObjectBaseRef<const Element> colorElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, … in initRenderState()
494 …ObjectBaseRef<const Element> gammaElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, … in initRenderState()
498 ObjectBaseRef<const Element> constInput = builder.create(mRSC); in initRenderState()
500 ObjectBaseRef<Type> inputType = Type::getTypeRef(mRSC, constInput.get(), 1, 0, 0, false, false); in initRenderState()
508 mFontShaderFConstant.set(Allocation::createAllocation(mRSC, inputType.get(), in initRenderState()
510 ProgramFragment *pf = new ProgramFragment(mRSC, shaderString.string(), in initRenderState()
513 mFontShaderF->bindAllocation(mRSC, mFontShaderFConstant.get(), 0); in initRenderState()
515 mFontSampler.set(Sampler::getSampler(mRSC, RS_SAMPLER_NEAREST, RS_SAMPLER_NEAREST, in initRenderState()
517 mFontShaderF->bindSampler(mRSC, 0, mFontSampler.get()); in initRenderState()
519 mFontProgramStore.set(ProgramStore::getProgramStore(mRSC, true, true, true, true, in initRenderState()
528 …ObjectBaseRef<const Element> alphaElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_8, RS_KIND_PIXE… in initTextTexture()
531 … ObjectBaseRef<Type> texType = Type::getTypeRef(mRSC, alphaElem.get(), 1024, 256, 0, false, false); in initTextTexture()
533 Allocation *cacheAlloc = Allocation::createAllocation(mRSC, texType.get(), in initTextTexture()
536 mTextTexture->syncAll(mRSC, RS_ALLOCATION_USAGE_SCRIPT); in initTextTexture()
558 …ObjectBaseRef<const Element> indexElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_16, RS_KIND_USE… in initVertexArrayBuffers()
560 …ObjectBaseRef<Type> indexType = Type::getTypeRef(mRSC, indexElem.get(), numIndicies, 0, 0, false, … in initVertexArrayBuffers()
562 Allocation *indexAlloc = Allocation::createAllocation(mRSC, indexType.get(), in initVertexArrayBuffers()
581 indexAlloc->sendDirty(mRSC); in initVertexArrayBuffers()
583 …ObjectBaseRef<const Element> posElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers()
584 …ObjectBaseRef<const Element> texElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers()
589 ObjectBaseRef<const Element> vertexDataElem = builder.create(mRSC); in initVertexArrayBuffers()
591 ObjectBaseRef<Type> vertexDataType = Type::getTypeRef(mRSC, vertexDataElem.get(), in initVertexArrayBuffers()
595 Allocation *vertexAlloc = Allocation::createAllocation(mRSC, vertexDataType.get(), in initVertexArrayBuffers()
599 mMesh.set(new Mesh(mRSC, 1, 1)); in initVertexArrayBuffers()
626 Context::PushState ps(mRSC); in issueDrawCommand()
628 mRSC->setProgramVertex(mRSC->getDefaultProgramVertex()); in issueDrawCommand()
629 mRSC->setProgramRaster(mRSC->getDefaultProgramRaster()); in issueDrawCommand()
630 mRSC->setProgramFragment(mFontShaderF.get()); in issueDrawCommand()
631 mRSC->setProgramStore(mFontProgramStore.get()); in issueDrawCommand()
634 mFontShaderFConstant->data(mRSC, 0, 0, 1, &mConstants, sizeof(mConstants)); in issueDrawCommand()
638 if (!mRSC->setupCheck()) { in issueDrawCommand()
642 mMesh->renderPrimitiveRange(mRSC, 0, 0, mCurrentQuadIndex * 6); in issueDrawCommand()
658 float width = (float)mRSC->getWidth(); in appendMeshQuad()
659 float height = (float)mRSC->getHeight(); in appendMeshQuad()
733 Font *currentFont = mRSC->getFont(); in renderText()
740 mDefault.set(Font::create(mRSC, fullPath.string(), 8, mRSC->getDPI())); in renderText()