Last updated:
0 purchases
glfw dart
GLFW Dart #
dart:ffi bindings for GLFW library
Install #
Add this to pubspec.yaml:
dependencies:
glfw_dart: ^0.2.0
copied to clipboard
Import it:
import 'package:glfw_dart/glfw3.dart';
copied to clipboard
Notice #1: .\glfw3.dll or /usr/lib/x86_64-linux-gnu/libglfw.so will be automatically opened.
For manual GLFW initialization:
import 'package:glfw_dart/glfw_dart.dart';
//...
final Glfw glfw = Glfw(customPath: '<path-to-glfw3.dll-file>', vulkan: true);
//...
void main(){
glfw.init();
//...
}
copied to clipboard
Notice #2: It is recommended to specify the path to glfw3.dll:
glfw = Glfw(customPath: Platform.isWindows ? "lib\\glfw3.dll" : null);
copied to clipboard
If customPath is null dynamic library will be automatically opened (see notice 1)
Alternatives #
glfw by gitlab@ext https://pub.dev/packages/glfw (gitlab: https://gitlab.com/ext/dart-glfw)
google/dart-glfw https://github.com/google/dart-glfw
Need to do #
High level api (with streams, objects)
See also #
gl_dart
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.