Lines Matching defs:rect
316 SDL_Rect rect = { 0, 0, (Uint16)guGuestXRes, (Uint16)guGuestYRes };
318 SDL_FillRect(gSurfVRAM, &rect,
384 SDL_Rect rect = { 0, 0, (Uint16)guGuestXRes, (Uint16)guGuestYRes };
395 checkSDL("SDL_BlitSurface", SDL_BlitSurface(gSurfVRAM, &rect, gScreen, &rect));
397 SDL_UpdateRect(gScreen, rect.x, rect.y, rect.w, rect.h);
404 glPixelStorei(GL_UNPACK_SKIP_PIXELS, rect.x);
405 glPixelStorei(GL_UNPACK_SKIP_ROWS, rect.y);
409 case 16: glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, rect.w, rect.h,
412 case 24: glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, rect.w, rect.h,
415 case 32: glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, rect.w, rect.h,
421 GLfloat tx = (GLfloat)((float)rect.w) / guTextureWidth;
422 GLfloat ty = (GLfloat)((float)rect.h) / guTextureHeight;
425 glTexCoord2f(0.0, 0.0); glVertex2i(rect.x, rect.y );
426 glTexCoord2f(0.0, ty); glVertex2i(rect.x, rect.y + rect.h);
427 glTexCoord2f(tx, ty); glVertex2i(rect.x + rect.w, rect.y + rect.h);
428 glTexCoord2f(tx, 0.0); glVertex2i(rect.x + rect.w, rect.y );