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

GLFW 3.3.4 FFI bindings for Dart. Supports Linux and Windows.

example/example.dart

import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:glfw/glfw.dart';

void main() {
  glfwInit();
  print('GLFW: ${glfwGetVersionString().cast<Utf8>().toDartString()}');

  var window = glfwCreateWindow(640, 480, 'Dart FFI + GLFW'.toNativeUtf8(),
      nullptr.cast(), nullptr.cast());

  while (glfwWindowShouldClose(window) != GLFW_TRUE) {
    glfwSwapBuffers(window);
    glfwPollEvents();
  }
}
copied to clipboard
8
likes
140
points
58
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

GLFW 3.3.4 FFI bindings for Dart. Supports Linux and Windows.

Repository (GitLab)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on glfw