Пример #1
0
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);
}
Пример #2
0
void updateAndActivateTarget(ImageOutport& outport, ImageInport& inport) {
    auto outImage = outport.getEditableData();
    auto outImageGL = outImage->getEditableRepresentation<ImageGL>();
    outImageGL->updateFrom(inport.getData()->getRepresentation<ImageGL>());
    outImageGL->activateBuffer();
}
Пример #3
0
void activateTarget(ImageOutport& outport, ImageType type) {
    auto outImage = outport.getEditableData();
    auto outImageGL = outImage->getEditableRepresentation<ImageGL>();
    outImageGL->activateBuffer(type);
}