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.