Search found 145 matches

by Mick P.
Sat Jun 22, 2019 9:50 pm
Forum: Platform Related Issues
Topic: wxEVT_MOVE_END equivalent for GTK
Replies: 3
Views: 1783

Re: wxEVT_MOVE_END equivalent for GTK

I think it sends wxEVT_MOVE only after the window is released from moving? It certainly looks that way, but it may depend on if the session is remote or other factors. I'm curious to know if that's the case.
by Mick P.
Sat Jun 22, 2019 9:48 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 3220

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

Hi, Well you should've started with it in the first place. The reason is - it uses latest, more modern implementation of OpenGL. But for command-line parameters parsing you check either console sample or docview sample. Thank you. I'm well-versed in OpenGL (graphics in general) thank you :mrgreen: ...
by Mick P.
Sat Jun 22, 2019 9:27 am
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 2244

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

Manolo wrote: Sat Jun 22, 2019 12:00 amPlease, stop adding confusion. The OP has problems with 'creating a openGL context in wxWidgets', and some people (like me) are trying to help.
Yeah, I was trying to help [-X
by Mick P.
Fri Jun 21, 2019 8:58 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 2244

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

I suggest the opposite. Using wx3.1 OGL features is much much easier than dealing with OS API. Take a look at glcanvas.cpp for several targets to see the required steps to go, that you can avoid just by using wx. Well I hope you realize (I didn't at first) sarah.miller is specifically NOT using wxG...
by Mick P.
Fri Jun 21, 2019 12:24 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 2244

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

So I create a wxglcanvas and then an wxglcontext but the problem I'm facing is that the internal context created by the canvas triggers an assert and I've got no clue as to what goes wrong. Sorry, I think I misread. I thought maybe you had confused these (https://docs.wxwidgets.org/trunk/classwx_g_...
by Mick P.
Wed Jun 19, 2019 3:10 pm
Forum: C++ Development
Topic: Smooth surfaces in opengl/penguin example
Replies: 5
Views: 865

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: 44
Views: 8435

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 he...
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: 3074

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: 2244

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: 3220

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: 44
Views: 8435

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: 44
Views: 8435

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: 3220

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: 3220

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: 3220

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 applica...