gfx-device

wayland/vidor-graphics/gfx-device

A Vidor graphics device. Display resolution: 640 x 480 pixels.
gfx-device
@/gfx-device
A Vidor graphics device. Display resolution: 640 x 480 pixels.
gfx-device
GFX
GFX@/gfx-device
A GFX device.
To use the node in your project you should have the wayland/vidor-graphics library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD error_raise enable
#pragma XOD require "https://github.com/vidor-libraries/VidorGraphics"
#include <VidorGraphics.h>
#include <Vidor_GFX.h>

node {
    meta {
        using Type = Vidor_GFX*;
    }

    Vidor_GFX gfx = Vidor_GFX();

    void evaluate(Context ctx) {
        // It should be evaluated only once on the first (setup) transaction
        if (!isSettingUp())
            return;

        if (!FPGA.begin()) {
            raiseError(ctx);
            return;
        }

        emitValue<output_GFX>(ctx, &gfx);
    }

}