opengl 0.1.0+1 copy "opengl: ^0.1.0+1" to clipboard
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()); 
}
31
likes
0
pub points
55%
popularity

Publisher

unverified uploader

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