This is a collection of components and a fully fledged component system to be used with the LWJGL 3 NanoVG library.
- Button
- Label
- Checkbox
- Radio Button
- Slider
- Progress Bar
- Text Field
- Text Area
- List
- Color Picker
- Absolute
- Stack
- Relative
public class ComponentName extends Component {
@Override
public void init() {
super.init();
// Initialization code
}
@Override
public void render(PointBounds mouseBounds) {
super.render(mouseBounds);
// Drawing code
}
}
public class Main {
public void init() {
// Your initialization code
NVGManager.createContext(windowHandle);
NVGManager.setupInput();
NVGManager.displayScreen(new MainScreen());
}
public void render() {
// Your rendering code
NVGManager.render();
}
}
See Demo Application
See LICENSE