Do you look at the wx samples, there are 3 or more samples of OpenGL code. But I guess they use legacy opengl pipeline method. (tell me if I'm wrong here)
You can see the screen shot images of those 3 samples ( just upload them as attachment).
Also, drawing objects are simple, and you can learn from any OpenGL tutorials. In-fact, I think wxGlCanvas is just a "canvas" or "window" you need to draw there. The import thing is how you supply the vertices, and glsl shaders, VBO, VAO to do that.
I have sample projects for Code::Blocks here:
1, all wx sample projects for code::blocks
2, a sample opengl + wxWidgets demo project, which use modern core profile method.
3,
Learn OpenGL site
There are more resources if you search on Google or github
Asmwarrior