Lines Matching refs:gl
193 glpic_t *gl; in Draw_PicFromWad() local
196 gl = (glpic_t *)p->data; in Draw_PicFromWad()
212 gl->texnum = texnum; in Draw_PicFromWad()
213 gl->sl = (x+0.01)/(float)BLOCK_WIDTH; in Draw_PicFromWad()
214 gl->sh = (x+p->width-0.01)/(float)BLOCK_WIDTH; in Draw_PicFromWad()
215 gl->tl = (y+0.01)/(float)BLOCK_WIDTH; in Draw_PicFromWad()
216 gl->th = (y+p->height-0.01)/(float)BLOCK_WIDTH; in Draw_PicFromWad()
223 gl->texnum = GL_LoadPicTexture (p); in Draw_PicFromWad()
224 gl->sl = 0; in Draw_PicFromWad()
225 gl->sh = 1; in Draw_PicFromWad()
226 gl->tl = 0; in Draw_PicFromWad()
227 gl->th = 1; in Draw_PicFromWad()
243 glpic_t *gl; in Draw_CachePic() local
271 gl = (glpic_t *)pic->pic.data; in Draw_CachePic()
272 gl->texnum = GL_LoadPicTexture (dat); in Draw_CachePic()
273 gl->sl = 0; in Draw_CachePic()
274 gl->sh = 1; in Draw_CachePic()
275 gl->tl = 0; in Draw_CachePic()
276 gl->th = 1; in Draw_CachePic()
381 glpic_t *gl; in Draw_Init() local
460 gl = (glpic_t *)conback->data; in Draw_Init()
461 gl->texnum = GL_LoadTexture ("conback", conback->width, conback->height, ncdata, false, false); in Draw_Init()
462 gl->sl = 0; in Draw_Init()
463 gl->sh = 1; in Draw_Init()
464 gl->tl = 0; in Draw_Init()
465 gl->th = 1; in Draw_Init()
623 glpic_t *gl; in Draw_Pic() local
627 gl = (glpic_t *)pic->data; in Draw_Pic()
629 GL_Bind (gl->texnum); 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()
634 glTexCoord2f (gl->sl, gl->tl); in Draw_Pic()
636 glTexCoord2f (gl->sh, gl->tl); in Draw_Pic()
638 glTexCoord2f (gl->sh, gl->th); in Draw_Pic()
640 glTexCoord2f (gl->sl, gl->th); in Draw_Pic()
653 glpic_t *gl; in Draw_AlphaPic() local
657 gl = (glpic_t *)pic->data; in Draw_AlphaPic()
663 GL_Bind (gl->texnum); 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()
668 glTexCoord2f (gl->sl, gl->tl); in Draw_AlphaPic()
670 glTexCoord2f (gl->sh, gl->tl); in Draw_AlphaPic()
672 glTexCoord2f (gl->sh, gl->th); in Draw_AlphaPic()
674 glTexCoord2f (gl->sl, gl->th); in Draw_AlphaPic()
685 glpic_t *gl; in Draw_SubPic() local
691 gl = (glpic_t *)pic->data; in Draw_SubPic()
693 oldglwidth = gl->sh - gl->sl; in Draw_SubPic()
694 oldglheight = gl->th - gl->tl; in Draw_SubPic()
696 newsl = gl->sl + (srcx*oldglwidth)/pic->width; in Draw_SubPic()
699 newtl = gl->tl + (srcy*oldglheight)/pic->height; in Draw_SubPic()
703 GL_Bind (gl->texnum); in Draw_SubPic()