dalerank / nanogui-sdl

Minimalistic port of NanoGUI claim works with SDL API w/o external dependencies.
Other
437 stars 77 forks source link

4 errors in nanogui_sdl/screen.cpp #20

Closed Merytsetesh closed 5 years ago

Merytsetesh commented 7 years ago

I've finally managed to get nanogui_sdl to link to my SDL library by force-feeding it a link to my copy and by changing all the <SDL/> and <SDL2/> includes appropriately. I'm now getting these errors on compilation:

nanogui-sdl\src\screen.cpp(24): error C2365: 'glActiveTexture': redefinition; previous definition was 'function' lib\SDL2\include\SDL_opengl.h(1871): note: see declaration of 'glActiveTexture'

nanogui-sdl\ext\nanovg/nanovg_gl.h(208): warning C4201: nonstandard extension used: nameless struct/union nanogui-sdl\src\screen.cpp(127): error C2659: '=': function as left operand

dalerank commented 7 years ago

Are native samples works?

Merytsetesh commented 7 years ago

nanogui_sdl won't compile, and gives the errors above, so, no, they don't work.

dalerank commented 5 years ago

redesigned for sdl2 api only, try now