glfw 0.1.0 copy "glfw: ^0.1.0" to clipboard
glfw: ^0.1.0 copied to clipboard

outdated

GLFW 3 FFI bindings for Dart. Supports Windows and Linux desktops.

example/example.dart

import 'package:glfw/glfw.dart';
import 'package:glfw/src/glfw_init.dart';

void main() {

  // load GLFW3 dynamic library and init all its functions
  initGlfw();

  // init GLFW3
  var result = glfwInit();

  // glfwInit returns GLFW_TRUE if successful, or GLFW_FALSE if an error occurred
  print('glfwInit() result is ${result == GLFW_TRUE ? "GLFW_TRUE" : "GLFW_TRUE"}');
}
8
likes
0
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

GLFW 3 FFI bindings for Dart. Supports Windows and Linux desktops.

Repository (GitLab)
View/report issues

License

unknown (license)

More

Packages that depend on glfw