Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
47d1a7881This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.makelangelo.plotter.plotterrenderer;
import com.jogamp.opengl.GL2;
import com.marginallyclever.makelangelo.plotter.Plotter;
import com.marginallyclever.makelangelo.plotter.plottersettings.PlotterSettings;
/**
* Each {@link PlotterRenderer} renders a {@link Plotter} with custom graphics. That is to say it draws the machine,
* not the drawing made by the machine.
* {@link PlotterRenderer}s do not store any state data. They must rely on {@link Plotter} and {@link PlotterSettings}.
* {@code render()} method.
*
* @author Dan Royer
*/
public interface PlotterRenderer {
/**
* Custom look and feel for each version
*
* @param gl2 the render context
* @param robot the machine to draw.
*/
void render(GL2 gl2, Plotter robot);
}