Lines Matching refs:verts
209 …SDL_Point *verts = (SDL_Point *) SDL_AllocateRenderVertices(renderer, count * sizeof (SDL_Point), … in SW_QueueDrawPoints() local
212 if (!verts) { in SW_QueueDrawPoints()
221 for (i = 0; i < count; i++, verts++, points++) { in SW_QueueDrawPoints()
222 verts->x = (int)(x + points->x); in SW_QueueDrawPoints()
223 verts->y = (int)(y + points->y); in SW_QueueDrawPoints()
226 for (i = 0; i < count; i++, verts++, points++) { in SW_QueueDrawPoints()
227 verts->x = (int)points->x; in SW_QueueDrawPoints()
228 verts->y = (int)points->y; in SW_QueueDrawPoints()
238 …SDL_Rect *verts = (SDL_Rect *) SDL_AllocateRenderVertices(renderer, count * sizeof (SDL_Rect), 0, … in SW_QueueFillRects() local
241 if (!verts) { in SW_QueueFillRects()
251 for (i = 0; i < count; i++, verts++, rects++) { in SW_QueueFillRects()
252 verts->x = (int)(x + rects->x); in SW_QueueFillRects()
253 verts->y = (int)(y + rects->y); in SW_QueueFillRects()
254 verts->w = SDL_max((int)rects->w, 1); in SW_QueueFillRects()
255 verts->h = SDL_max((int)rects->h, 1); in SW_QueueFillRects()
258 for (i = 0; i < count; i++, verts++, rects++) { in SW_QueueFillRects()
259 verts->x = (int)rects->x; in SW_QueueFillRects()
260 verts->y = (int)rects->y; in SW_QueueFillRects()
261 verts->w = SDL_max((int)rects->w, 1); in SW_QueueFillRects()
262 verts->h = SDL_max((int)rects->h, 1); in SW_QueueFillRects()
273 …SDL_Rect *verts = (SDL_Rect *) SDL_AllocateRenderVertices(renderer, 2 * sizeof (SDL_Rect), 0, &cmd… in SW_QueueCopy() local
275 if (!verts) { in SW_QueueCopy()
281 SDL_memcpy(verts, srcrect, sizeof (SDL_Rect)); in SW_QueueCopy()
282 verts++; in SW_QueueCopy()
285 verts->x = (int)(renderer->viewport.x + dstrect->x); in SW_QueueCopy()
286 verts->y = (int)(renderer->viewport.y + dstrect->y); in SW_QueueCopy()
288 verts->x = (int)dstrect->x; in SW_QueueCopy()
289 verts->y = (int)dstrect->y; in SW_QueueCopy()
291 verts->w = (int)dstrect->w; in SW_QueueCopy()
292 verts->h = (int)dstrect->h; in SW_QueueCopy()
311 …CopyExData *verts = (CopyExData *) SDL_AllocateRenderVertices(renderer, sizeof (CopyExData), 0, &c… in SW_QueueCopyEx() local
313 if (!verts) { in SW_QueueCopyEx()
319 SDL_memcpy(&verts->srcrect, srcrect, sizeof (SDL_Rect)); in SW_QueueCopyEx()
322 verts->dstrect.x = (int)(renderer->viewport.x + dstrect->x); in SW_QueueCopyEx()
323 verts->dstrect.y = (int)(renderer->viewport.y + dstrect->y); in SW_QueueCopyEx()
325 verts->dstrect.x = (int)dstrect->x; in SW_QueueCopyEx()
326 verts->dstrect.y = (int)dstrect->y; in SW_QueueCopyEx()
328 verts->dstrect.w = (int)dstrect->w; in SW_QueueCopyEx()
329 verts->dstrect.h = (int)dstrect->h; in SW_QueueCopyEx()
330 verts->angle = angle; in SW_QueueCopyEx()
331 SDL_memcpy(&verts->center, center, sizeof (SDL_FPoint)); in SW_QueueCopyEx()
332 verts->flip = flip; in SW_QueueCopyEx()
661 … const SDL_Point *verts = (SDL_Point *) (((Uint8 *) vertices) + cmd->data.draw.first); in SW_RunCommandQueue() local
665 SDL_DrawPoints(surface, verts, count, SDL_MapRGBA(surface->format, r, g, b, a)); in SW_RunCommandQueue()
667 SDL_BlendPoints(surface, verts, count, blend, r, g, b, a); in SW_RunCommandQueue()
678 … const SDL_Point *verts = (SDL_Point *) (((Uint8 *) vertices) + cmd->data.draw.first); in SW_RunCommandQueue() local
682 SDL_DrawLines(surface, verts, count, SDL_MapRGBA(surface->format, r, g, b, a)); in SW_RunCommandQueue()
684 SDL_BlendLines(surface, verts, count, blend, r, g, b, a); in SW_RunCommandQueue()
695 const SDL_Rect *verts = (SDL_Rect *) (((Uint8 *) vertices) + cmd->data.draw.first); in SW_RunCommandQueue() local
699 SDL_FillRects(surface, verts, count, SDL_MapRGBA(surface->format, r, g, b, a)); in SW_RunCommandQueue()
701 SDL_BlendFillRects(surface, verts, count, blend, r, g, b, a); in SW_RunCommandQueue()
707 SDL_Rect *verts = (SDL_Rect *) (((Uint8 *) vertices) + cmd->data.draw.first); in SW_RunCommandQueue() local
708 const SDL_Rect *srcrect = verts; in SW_RunCommandQueue()
709 SDL_Rect *dstrect = verts + 1; in SW_RunCommandQueue()