Page 1 of 1

wxImage to load textures for OpenGL with lastest win10 sdk

Posted: Thu Aug 06, 2020 1:22 pm
by userS
I used this code ... 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

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.