iridescencetech / zglfw Goto Github PK
View Code? Open in Web Editor NEWA thin, idiomatic wrapper for GLFW. Written in Zig, for Zig!
License: Other
A thin, idiomatic wrapper for GLFW. Written in Zig, for Zig!
License: Other
glfw.getProcAddress("glAccumxOES")
returns a nullptr because I'm not using OpenGLES, yet this is not accounted for in the type signature. Should it return ?GLproc
instead of GLproc
?
should return !void
rather than void
The project currently uses gyro
, its time to migrate to build.zig.zon
as gyro is archived.
Hi, I am trying to use glfw in my program, however I'm having two problems :
I copy pasted the example from the readme and zig complains :
.\libs\zglfw\src\main.zig:193:5: error: enum tag value 348 already taken Last = 348, ^.\libs\zglfw\src\main.zig:192:5: note: other occurrence here
Menu = 348,
^.\src\main.zig:14:40: note: referenced here if(glfw.getKey(window, glfw.Key.Escape) == glfw.KeyState.Press){
^
Kizzle...The following command exited with error code 1:
D:\src\zig\zig.exe build-exe C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\src\main.zig --cache-dir C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache --global-cache-dir C:\Users\infrandomness\AppData\Local\zig --name Kizzle --pkg-begin glfw C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\libs\zglfw\src\main.zig --pkg-end --pkg-begin vulkan C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache\vk.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache\o\61e4c8c9e63ef6ebb86c346b218b33e2\build.exe D:\src\zig\zig.exe C:\Users\infrandomness\Documents\Dev\Zig\Kizzle C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache C:\Users\infrandomness\AppData\Local\zig
The second problem is probably more my environment but I have no idea how to fix it :
I removed the whole example, only letting
try glfw.init();
defer glfw.terminate();
but my linker complains
lld-link: error: undefined symbol: glfwInit
>>> referenced by C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\libs\zglfw\src\main.zig:485
>>> C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache\o\ce1583ec703202b46e48b9e05c05eb23\Kizzle.obj:(.glfw.init)
lld-link: error: undefined symbol: glfwTerminate
>>> referenced by C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\libs\zglfw\src\main.zig:520
>>> C:\Users\infrandomness\Documents\Dev\Zig\Kizzle\zig-cache\o\ce1583ec703202b46e48b9e05c05eb23\Kizzle.obj:(.glfw.terminate)
This probably just mean I am missing a library or doing something wrong
Update the README File -- it is quite out of date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.