Lines Matching refs:vp
986 GLint rfb=0, dfb=0, dtex=0, dlev=-1, rtex=0, rlev=-1, rb=0, db=0, ppb=0, pub=0, vp[4], otex, dstw, dsth;
1053 gl->GetIntegerv(GL_VIEWPORT, &vp[0]);
1125 GLint rfb=0, dfb=0, dtex=0, dlev=-1, rb=0, db=0, ppb=0, pub=0, vp[4], otex, dstw, dsth;
1143 gl->GetIntegerv(GL_VIEWPORT, &vp[0]);
1159 crDebug("Viewport [%i, %i, %i, %i]", vp[0], vp[1], vp[2], vp[3]);
1177 CRASSERT(vp[2]>=dstw && vp[3]>=dsth);
1178 img = crAlloc(vp[2]*vp[3]*4);
1181 gl->ReadPixels(0, 0, vp[2], vp[3], GL_BGRA, GL_UNSIGNED_BYTE, img);
1183 crDumpNamedTGA(fname, vp[2], vp[3], img);