memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.06k stars 767 forks source link

GET_QUERY_RESULT AVAILABLE undeclared identifier #599

Open suvidh opened 3 years ago

suvidh commented 3 years ago

I am trying to compile the example file example_gl3.c in visual studio so I can learn nanovg. But I am getting an error: C2065 'GET_QUERY_RESULT AVAILABLE undeclared identifier' perf.c line 63. These are the libraries I have linked statically: opengl32.lib;glfw3.lib;glew32sd.lib I am trying to compile for x64 Debug. Thanks

suvidh commented 3 years ago

I don't remember exactly how I solved the error and got the demo working in visual studio 2019. But are was some additional code and some changes required at least for debug. Would you guys like if I upload my nanovg visual studio project for you guys in case, someone else is struggling with getting nanovg to work in VS 2019. Also, are the text input fields in the demo non-writable, Like can I enter text in the fields? Because I am unable to enter words in the text field of the demo.