Home | History | Annotate | Download | only in Renderer

Lines Matching defs:source

43 	void Blitter::blit(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter)
46 blit(source, sRect, dest, dRect, options);
49 void Blitter::blit(Surface *source, const SliceRect &sourceRect, Surface *dest, const SliceRect &destRect, const Blitter::Options& options)
56 if(blitReactor(source, sourceRect, dest, destRect, options))
78 source->lockInternal(sRect.x0, sRect.y0, sRect.slice, sw::LOCK_READONLY, sw::PUBLIC);
94 dest->copyInternal(source, i, j, x, y, (options & FILTER_LINEAR) == FILTER_LINEAR);
102 source->unlockInternal();
106 void Blitter::blit3D(Surface *source, Surface *dest)
108 source->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC);
111 float w = static_cast<float>(source->getWidth()) / static_cast<float>(dest->getWidth());
112 float h = static_cast<float>(source->getHeight()) / static_cast<float>(dest->getHeight());
113 float d = static_cast<float>(source->getDepth()) / static_cast<float>(dest->getDepth());
124 dest->copyInternal(source, i, j, k, x, y, z, true);
132 source->unlockInternal();
1063 Pointer<Byte> source = *Pointer<Pointer<Byte>>(blit + OFFSET(BlitData,source));
1093 if(!read(constantColorI, source, state.sourceFormat))
1101 if(!read(constantColorF, source, state.sourceFormat))
1141 Pointer<Byte> s = source + Int(y) * sPitchB + Int(x) * Surface::bytes(state.sourceFormat);
1161 Pointer<Byte> s = source + Y * sPitchB + X * Surface::bytes(state.sourceFormat);
1179 Pointer<Byte> s00 = source + Y0 * sPitchB + X0 * Surface::bytes(state.sourceFormat);
1180 Pointer<Byte> s01 = source + Y0 * sPitchB + X1 * Surface::bytes(state.sourceFormat);
1181 Pointer<Byte> s10 = source + Y1 * sPitchB + X0 * Surface::bytes(state.sourceFormat);
1182 Pointer<Byte> s11 = source + Y1 * sPitchB + X1 * Surface::bytes(state.sourceFormat);
1214 bool Blitter::blitReactor(Surface *source, const SliceRect &sourceRect, Surface *dest, const SliceRect &destRect, const Blitter::Options& options)
1216 ASSERT(!(options & CLEAR_OPERATION) || ((source->getWidth() == 1) && (source->getHeight() == 1) && (source->getDepth() == 1)));
1233 bool useSourceInternal = !source->isExternalDirty();
1236 state.sourceFormat = source->getFormat(useSourceInternal);
1265 data.source = source->lock(0, 0, sourceRect.slice, sw::LOCK_READONLY, sw::PUBLIC, useSourceInternal);
1267 data.sPitchB = source->getPitchB(useSourceInternal);
1280 data.sWidth = source->getWidth();
1281 data.sHeight = source->getHeight();
1285 source->unlock(useSourceInternal);