Lines Matching defs:const

40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) {
49 error = FT_New_Memory_Face(mRSC->mStateFont.getLib(), (const FT_Byte*)data, dataLen, 0, &mFace);
76 void Font::preDestroy() const {
122 const uint8_t* cacheBuffer = state->mCacheBuffer;
160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y,
295 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
296 const void *data, uint32_t dataLen) {
494 const char *shaderString = "varying vec2 varTex0;\n"
502 const char *textureNames[] = { "Tex0" };
503 const size_t textureNamesLengths[] = { 4 };
506 ObjectBaseRef<const Element> colorElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32,
508 ObjectBaseRef<const Element> gammaElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32,
511 const char *ebn1[] = { "Color", "Gamma" };
512 const Element *ebe1[] = {colorElem.get(), gammaElem.get()};
513 ObjectBaseRef<const Element> constInput = Element::create(mRSC, 2, ebe1, ebn1);
545 ObjectBaseRef<const Element> alphaElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_8,
580 ObjectBaseRef<const Element> indexElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_16, RS_KIND_USER, false, 1);
604 ObjectBaseRef<const Element> posElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 3);
605 ObjectBaseRef<const Element> texElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 2);
607 const char *ebn1[] = { "position", "texture0" };
608 const Element *ebe1[] = {posElem.get(), texElem.get()};
609 ObjectBaseRef<const Element> vertexDataElem = Element::create(mRSC, 2, ebe1, ebn1);
671 const uint32_t vertsPerQuad = 4;
672 const uint32_t floatsPerVert = 6;
735 const size_t l = strlen(mLatinPrecache);
744 void FontState::renderText(const char *text, uint32_t len, int32_t x, int32_t y,
756 const char * root = getenv("ANDROID_ROOT");
783 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) {
796 const float luminance = (r * 2.0f + g * 5.0f + b) / 8.0f;
806 void FontState::getFontColor(float *r, float *g, float *b, float *a) const {
858 char const *name, size_t name_length,
868 char const *name, size_t name_length,
870 const void *data, size_t data_length) {