wxImage to load textures for OpenGL with lastest win10 sdk

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
userS
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Jun 22, 2020 3:53 am

wxImage to load textures for OpenGL with lastest win10 sdk

Post by userS » Thu Aug 06, 2020 1:22 pm

I used this code https://wiki.wxwidgets.org/Using_wxImag ... for_OpenGL
i split it to h and cpp files.
VS 2019 win 10 sdk

get this error

error C3861: 'glActiveTexture': identifier not found

Error C2065 'GL_CLAMP_TO_EDGE': undeclared identifier wxImageLoader.cpp 172

and much errors in gl.h
APIENTRY WINGDIAPI

Error C2144 syntax error: 'void' should be preceded by ';' C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\gl\gl.h 1157


I used normally wxGLCanvas and it worked fine.

Post Reply