Home | History | Annotate | Download | only in Renderer

Lines Matching full:drect

33 	void Blitter::clear(void* pixel, sw::Format format, Surface *dest, const SliceRect &dRect, unsigned int rgbaMask)
35 if(fastClear(pixel, format, dest, dRect, rgbaMask))
42 SliceRect sRect(dRect);
44 blit(color, sRect, dest, dRect, clearOptions);
48 bool Blitter::fastClear(void* pixel, sw::Format format, Surface *dest, const SliceRect &dRect, unsigned int rgbaMask)
103 uint8_t *d = (uint8_t*)dest->lockInternal(dRect.x0, dRect.y0, dRect.slice, sw::LOCK_WRITEONLY, sw::PUBLIC);
108 for(int i = dRect.y0; i < dRect.y1; i++)
110 sw::clear((uint16_t*)d, packed, dRect.x1 - dRect.x0);
115 for(int i = dRect.y0; i < dRect.y1; i++)
117 sw::clear((uint32_t*)d, packed, dRect.x1 - dRect.x0);
130 void Blitter::blit(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter, bool isStencil)
141 blit(source, sRect, dest, dRect, options);
157 SliceRect dRect = destRect;
164 swap(dRect.x0, dRect.x1);
169 swap(dRect.y0, dRect.y1);
174 dest->lockInternal(dRect.x0, dRect.y0, dRect.slice, sw::LOCK_WRITEONLY, sw::PUBLIC);
176 float w = static_cast<float>(sRect.x1 - sRect.x0) / static_cast<float>(dRect.x1 - dRect.x0);
177 float h = static_cast<float>(sRect.y1 - sRect.y0) / static_cast<float>(dRect.y1 - dRect.y0);
182 for(int j = dRect.y0; j < dRect.y1; j++)
186 for(int i = dRect.x0; i < dRect.x1; i++)
1306 Rect dRect = destRect;
1310 swap(dRect.x0, dRect.x1);
1315 swap(dRect.y0, dRect.y1);
1361 data.w = 1.0f / (dRect.x1 - dRect.x0) * (sRect.x1 - sRect.x0);
1362 data.h = 1.0f / (dRect.y1 - dRect.y0) * (sRect.y1 - sRect.y0);
1366 data.x0d = dRect.x0;
1367 data.x1d = dRect.x1;
1368 data.y0d = dRect.y0;
1369 data.y1d = dRect.y1;