void activateTargetAndCopySource(ImageOutport& outport, ImageInport& inport, ImageType type) { auto outImage = outport.getEditableData(); auto outImageGL = outImage->getEditableRepresentation<ImageGL>(); auto inImage = inport.getData(); auto inImageGL = inImage->getRepresentation<ImageGL>(); inImageGL->copyRepresentationsTo(outImageGL); outImageGL->activateBuffer(type); }
void updateAndActivateTarget(ImageOutport& outport, ImageInport& inport) { auto outImage = outport.getEditableData(); auto outImageGL = outImage->getEditableRepresentation<ImageGL>(); outImageGL->updateFrom(inport.getData()->getRepresentation<ImageGL>()); outImageGL->activateBuffer(); }
void activateTarget(ImageOutport& outport, ImageType type) { auto outImage = outport.getEditableData(); auto outImageGL = outImage->getEditableRepresentation<ImageGL>(); outImageGL->activateBuffer(type); }