Exemplo n.º 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);
}
Exemplo n.º 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();
}
Exemplo n.º 3
0
void activateTarget(ImageOutport& outport, ImageType type) {
    auto outImage = outport.getEditableData();
    auto outImageGL = outImage->getEditableRepresentation<ImageGL>();
    outImageGL->activateBuffer(type);
}