Search found 110 matches

by Mick P.
Wed Jun 19, 2019 3:10 pm
Forum: C++ Development
Topic: Smooth surfaces in opengl/penguin example
Replies: 5
Views: 190

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 explai...
by Mick P.
Wed Jun 19, 2019 1:34 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

I don't know. There are a few applications listed at http://www.wxwidgets.org/about/screenshots/ that look like they would use wxGLCanvas. But they probably won't have "large" user bases. CopperCube (http://www.wxwidgets.org/about/screenshots/) looks interesting for something I'd never heard about....
by Mick P.
Wed Jun 19, 2019 1:26 pm
Forum: C++ Development
Topic: Timer (one-off) memory ownership semantics? Delete in event?
Replies: 16
Views: 482

Re: Timer (one-off) memory ownership semantics? Delete in event?

virtual void wxWindow::Update ( ) Update doesn't work for OpenGL. I think it may do an immediate paint. When I try to use it it would always produce a distorted image. 1. I cant help you with Glut or Opengl games , because it were just my memories from 90's, with their old school Intel386 and Windo...
by Mick P.
Wed Jun 19, 2019 1:13 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 432

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

I think wxGLContext is separate from wxGLCanvas. I think you're confusing it with some dinky little helper objects that were added later. Look in the examples, you will see that they manage a wxGLContext object separate from their canvases, since those things are logically separate; although it is p...
by Mick P.
Tue Jun 18, 2019 12:18 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 461

Re: Xlib: How does wxWidgets understand x11's client options?

Hi, Please have a look at the console sample. IIRC, this is the only sample that gives an exampple on how to properly create and parse the command-line arguments for wxWidgets based applications. Remember there is a difference between long and short options you pass to the program as an argument. A...
by Mick P.
Tue Jun 18, 2019 12:11 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

Manolo, https://github.com/isocpp/CppCoreGuidelines is a good source for where current thinking is on best practices. Programmers have a lot of bad instincts. but the consensus is slowly getting better. Orthodoxies change. These are diametrically opposite of the prevailing wisdom of a decade ago, wh...
by Mick P.
Mon Jun 17, 2019 4:50 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

FWIW the paid (non-opensource) version of Xming is able to run the cube demo without the surface corruption issue exhibited by the Cygwin X server. It can also run my software, mostly... it still occasionally goes into non-communicative mode. I'm trying to find superior ways to debug these things, b...
by Mick P.
Mon Jun 17, 2019 3:06 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 461

Re: Xlib: How does wxWidgets understand x11's client options?

Sit back, relax and enjoy the show. ;-) Sorry, I just noticed this post! I thought this topic was long dead =D> To answer your question, on Linux like systems there's usually (thankfully) a wxWidgets package handy. So you install that, and you have your dependency covered. Like I've said (possibly ...
by Mick P.
Mon Jun 17, 2019 2:54 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 461

Re: Xlib: How does wxWidgets understand x11's client options?

I'm getting the command-line parsing system in my face again: Unknown long option 'sync' Usage: example [-h] [--verbose] -h, --help show this help message --verbose generate verbose log messages This asserts/aborts without any indication of what's wrong in Netbeans over GDB. I can only see this outp...
by Mick P.
Mon Jun 17, 2019 2:31 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 461

Re: Xlib: How does wxWidgets understand x11's client options?

For the record, I came across the answer to this question. Although I'm testing this now, and it's not stripping out --sync from the command-line as claimed. The next line: gtk_init (&argc, &argv); calls the function gtk_init(gint *argc, gchar ***argv) which will be called in all GTK applications. T...
by Mick P.
Mon Jun 17, 2019 10:33 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

Can you provide a minimal compilable sample that uses your component? The opengl examples (wx3.0-examples) should be adequate for that? although Cygwin doesn't have that package. I think I will be publishing new code in the next week, but it's not really pertinent. Maybe my little initiative will l...
by Mick P.
Sun Jun 16, 2019 5:24 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

#ifdef __WXGTK3__ g_signal_connect(m_wxwindow, "draw", G_CALLBACK(draw), this); #else g_signal_connect(m_wxwindow, "map", G_CALLBACK(gtk_glwindow_map_callback), this); g_signal_connect(m_wxwindow, "expose_event", G_CALLBACK(gtk_glwindow_expose_callback), this); #endif ...is one difference between t...
by Mick P.
Sun Jun 16, 2019 4:18 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

Hi, Well for what its worth, you should look at the yramid sample which has modern OpenGL implementation. Build it, run it, look at the code. Then follow it in your program (if everything works). If not, it would be interesting to know what doesn't. Thank you. Well, I'm not sure you mean by modern,...
by Mick P.
Sat Jun 15, 2019 9:59 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

Hi, Out of curiosity - do you access any GUI from the secondary thread? By "secondary thread" I mean - the one that do not start the wxApp-derived class. All wxWidgets GUI classes are NOT THREAD-SAFE!! So if you need to access it from the secondary thread - use either wxThreadEvent or a custom even...
by Mick P.
Fri Jun 14, 2019 11:20 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 37
Views: 932

Re: Help? GTK events do/dont's for dummies (nothing works)

Here is Cygwin crash output. It might be too soon to say, but I think this could be telling of what's happening with wxGTK. ** (example:5182): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying ...