Lines Matching refs:texture
40 GRSurface* texture; member
169 if (!font || !font->texture || (gr_current & alpha_mask) == 0) return; in gr_text()
171 if (font->texture->pixel_bytes != 1) { in gr_text()
176 bold = bold && (font->texture->height != font->char_height); in gr_text()
191 uint8_t* src_p = font->texture->data + ((ch - ' ') * font->char_width) + in gr_text()
192 (bold ? font->char_height * font->texture->row_bytes : 0); in gr_text()
195 text_blend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text()
349 int res = res_create_alpha_surface("font", &(gr_font->texture)); in gr_init_font()
354 gr_font->char_width = gr_font->texture->width / 96; in gr_init_font()
355 gr_font->char_height = gr_font->texture->height / 2; in gr_init_font()
360 gr_font->texture = malloc(sizeof(*gr_font->texture)); in gr_init_font()
361 gr_font->texture->width = font.width; in gr_init_font()
362 gr_font->texture->height = font.height; in gr_init_font()
363 gr_font->texture->row_bytes = font.width; in gr_init_font()
364 gr_font->texture->pixel_bytes = 1; in gr_init_font()
367 gr_font->texture->data = (void*) bits; in gr_init_font()