opengl 0.1.0+1 icon indicating copy to clipboard operation
opengl: ^0.1.0+1 copied to clipboard

outdated

OpenGL 4.6 FFI bindings for Dart. Supports Windows and Linux desktops.

example/example.dart

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()); 
}
19
likes
0
pub points
43%
popularity

OpenGL 4.6 FFI bindings for Dart. Supports Windows and Linux desktops.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on opengl