Lines Matching refs:tex
115 const FNTTexture* tex, in DrawChar() argument
119 f32 posLeft = x + tex->left * scaleX; in DrawChar()
121 f32 posRight = posLeft + tex->glyphWidth * scaleX; in DrawChar()
122 f32 posBottom = posTop + tex->charHeight * scaleY; in DrawChar()
124 u16 texLeft = (u16)(tex->cellX in DrawChar()
125 * TEXTURE_COODINATE_ONE / tex->texWidth); in DrawChar()
126 u16 texTop = (u16)(tex->cellY in DrawChar()
127 * TEXTURE_COODINATE_ONE / tex->texHeight); in DrawChar()
128 u16 texRight = (u16)((tex->cellX + tex->glyphWidth) in DrawChar()
129 * TEXTURE_COODINATE_ONE / tex->texWidth); in DrawChar()
130 u16 texBottom = (u16)((tex->cellY + tex->charHeight) in DrawChar()
131 * TEXTURE_COODINATE_ONE / tex->texHeight); in DrawChar()
133 if (tex->image != *lastImage) in DrawChar()
137 GXInitTexObj(&tobj, tex->image, tex->texWidth, tex->texHeight, in DrawChar()
138 tex->texFormat, GX_CLAMP, GX_CLAMP, GX_FALSE); in DrawChar()
142 *lastImage = tex->image; in DrawChar()
190 FNTTexture tex; in DrawString() local
192 string = FNTGetTexture(font, string, &tex); in DrawString()
193 scaleWd = tex.charWidth * scaleX; in DrawString()
195 DrawChar(x + margin, y, z, &tex, scaleX, scaleY, lastImage); in DrawString()