Search found 5 matches

by sarah.miller
Mon Jun 24, 2019 7:57 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 919

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

I assume the unmodified pyramid sample works for you? Yes, the unmodified pyramid sample compiles and runs without problems. Looking at the about dialog, I'm getting an opengl 3.2 context in the pyramid sample. Creating an MWE will take a while though. To find how pyramid gets compiled add >buildlo...
by sarah.miller
Sun Jun 23, 2019 5:42 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 919

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

Sorry about the confusion. I've looked at the pyramid sample again and didn't notice much difference compared to my own code. I am indeed using a custom class derived from wxGLCanvas , which holds a wxGLContext as a member variable (which is initially a nullptr and gets initialized within the constr...
by sarah.miller
Thu Jun 20, 2019 8:07 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 919

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

You already mentioned the "pyramid" sample. Doesn't that show how to use modern OpenGL contexts? The pyramid sample does indeed show how to use modern OpenGL contexts. It could be more verbose though. What I'm trying to do is get a simple opengl program working (just clears the screen with a blue c...
by sarah.miller
Mon Jun 17, 2019 5:18 pm
Forum: C++ Development
Topic: Smooth surfaces in opengl/penguin example
Replies: 5
Views: 391

Re: Smooth surfaces in opengl/penguin example

Looking at penguin.cpp, we can see that the penguin sample uses the old legacy pipeline which included a simple lighting model. While you could look up how the legacy light model worked, you're probably better off looking at how modern shader based rendering techniques work - e.g. a tutorial explain...
by sarah.miller
Mon Jun 17, 2019 5:08 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 919

[wxwidgets3.1.2, opengl] A hen and egg problem

Hi. I've got an opengl application where I manually create an opengl context (I'm able to get an opengl 4.2 context on my machine). I'd like to use wxwidgets to add some gui elements to e.g. toggle render modes and to generally make debugging easier. Unfortunably, I've got some problems creating an ...