Lines Matching refs:texture
39 GRSurface* texture; member
110 if (!font->texture || gr_current_a == 0) return; in gr_text()
112 bold = bold && (font->texture->height != font->cheight); in gr_text()
125 unsigned char* src_p = font->texture->data + ((ch - ' ') * font->cwidth) + in gr_text()
126 (bold ? font->cheight * font->texture->row_bytes : 0); in gr_text()
129 text_blend(src_p, font->texture->row_bytes, in gr_text()
274 int res = res_create_alpha_surface("font", &(gr_font->texture)); in gr_init_font()
279 gr_font->cwidth = gr_font->texture->width / 96; in gr_init_font()
280 gr_font->cheight = gr_font->texture->height / 2; in gr_init_font()
285 gr_font->texture = reinterpret_cast<GRSurface*>(malloc(sizeof(*gr_font->texture))); in gr_init_font()
286 gr_font->texture->width = font.width; in gr_init_font()
287 gr_font->texture->height = font.height; in gr_init_font()
288 gr_font->texture->row_bytes = font.width; in gr_init_font()
289 gr_font->texture->pixel_bytes = 1; in gr_init_font()
292 gr_font->texture->data = reinterpret_cast<unsigned char*>(bits); in gr_init_font()