glfw 0.1.0
glfw: ^0.1.0 copied to clipboard
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"}');
}