Coder Social home page Coder Social logo

zglfw's Issues

Should `getProcAddress` return `?GLproc`?

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?

Building issues

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.