opengl 0.1.0+1 opengl: ^0.1.0+1 copied to clipboard
OpenGL 4.6 FFI bindings for Dart. Supports Windows and Linux desktops.
import 'package:opengl/src/opengl_loader.dart';
void main() {
// create OpenGL context and make it current
//...
// load OpenGL dynamic libarary and init all OpenGL functions
initOpenGL();
// use OpenGL
//...
// glGetError must return GL_INVALID_OPERATION = 0x0502 without context
print(glGetError());
}