• Home
  • Raw
  • Download

Lines Matching refs:pic

177 	qpic_t		pic;  member
240 cachepic_t *pic; in Draw_CachePic() local
245 for (pic=menu_cachepics, i=0 ; i<menu_numcachepics ; pic++, i++) in Draw_CachePic()
246 if (!strcmp (path, pic->name)) in Draw_CachePic()
247 return &pic->pic; in Draw_CachePic()
252 strcpy (pic->name, path); in Draw_CachePic()
268 pic->pic.width = dat->width; in Draw_CachePic()
269 pic->pic.height = dat->height; in Draw_CachePic()
271 gl = (glpic_t *)pic->pic.data; in Draw_CachePic()
278 return &pic->pic; in Draw_CachePic()
621 void Draw_Pic (int x, int y, qpic_t *pic) in Draw_Pic() argument
627 gl = (glpic_t *)pic->data; in Draw_Pic()
631 DrawQuad(x, y, pic->width, pic->height, gl->sl, gl->tl, gl->sh - gl->sl, gl->th - gl->tl); in Draw_Pic()
637 glVertex2f (x+pic->width, y); in Draw_Pic()
639 glVertex2f (x+pic->width, y+pic->height); in Draw_Pic()
641 glVertex2f (x, y+pic->height); in Draw_Pic()
651 void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha) in Draw_AlphaPic() argument
657 gl = (glpic_t *)pic->data; in Draw_AlphaPic()
665 DrawQuad(x, y, pic->width, pic->height, gl->sl, gl->tl, gl->sh - gl->sl, gl->th - gl->tl); in Draw_AlphaPic()
671 glVertex2f (x+pic->width, y); in Draw_AlphaPic()
673 glVertex2f (x+pic->width, y+pic->height); in Draw_AlphaPic()
675 glVertex2f (x, y+pic->height); in Draw_AlphaPic()
683 void Draw_SubPic(int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height) in Draw_SubPic() argument
691 gl = (glpic_t *)pic->data; in Draw_SubPic()
696 newsl = gl->sl + (srcx*oldglwidth)/pic->width; in Draw_SubPic()
697 newsh = newsl + (width*oldglwidth)/pic->width; in Draw_SubPic()
699 newtl = gl->tl + (srcy*oldglheight)/pic->height; in Draw_SubPic()
700 newth = newtl + (height*oldglheight)/pic->height; in Draw_SubPic()
725 void Draw_TransPic (int x, int y, qpic_t *pic) in Draw_TransPic() argument
728 if (x < 0 || (unsigned)(x + pic->width) > vid.width || y < 0 || in Draw_TransPic()
729 (unsigned)(y + pic->height) > vid.height) in Draw_TransPic()
734 Draw_Pic (x, y, pic); in Draw_TransPic()
745 void Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte *translation) in Draw_TransPicTranslate() argument
754 c = pic->width * pic->height; in Draw_TransPicTranslate()
759 src = &menuplyr_pixels[ ((v*pic->height)>>6) *pic->width]; in Draw_TransPicTranslate()
762 p = src[(u*pic->width)>>6]; in Draw_TransPicTranslate()
777 DrawQuad(x, y, pic->width, pic->height, 0, 0, 1, 1); in Draw_TransPicTranslate()
783 glVertex2f (x+pic->width, y); in Draw_TransPicTranslate()
785 glVertex2f (x+pic->width, y+pic->height); in Draw_TransPicTranslate()
787 glVertex2f (x, y+pic->height); in Draw_TransPicTranslate()
1431 int GL_LoadPicTexture (qpic_t *pic) in GL_LoadPicTexture() argument
1433 return GL_LoadTexture ("", pic->width, pic->height, pic->data, false, true); in GL_LoadPicTexture()