Search found 9 matches

by GeatMaster
Fri Feb 10, 2017 2:59 pm
Forum: C++ Development
Topic: sharing between GL contexts w/o going through wxGLContext?
Replies: 1
Views: 1010

Re: sharing between GL contexts w/o going through wxGLContext?

If anyone else has the problem the soluition is to move XInit threads to here: bool App::OnInit() { //(*AppInitialize bool wxsOK = true; #ifdef __linux__ wxsOK = XInitThreads(); #endif //etc... And the creation of the context to here: void loadingThreadEntry(wxGLContext * context, wxGLCanvas * canva...
by GeatMaster
Fri Feb 10, 2017 4:50 am
Forum: C++ Development
Topic: sharing between GL contexts w/o going through wxGLContext?
Replies: 1
Views: 1010

sharing between GL contexts w/o going through wxGLContext?

I'm trying to have one thread load textures while another thread does the rendering, but I keep getting the error: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. MainWindow: ../.....
by GeatMaster
Sat Feb 04, 2017 8:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling with C++14?
Replies: 6
Views: 2609

Re: Compiling with C++14?

it was because I included openGL before wxWidgets in a header, for some reason.
by GeatMaster
Sat Feb 04, 2017 4:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling with C++14?
Replies: 6
Views: 2609

Re: Compiling with C++14?

if I don't run the configure the wx-config script doesn't exist, so I'm not sure how you can use it without running the configure. creating a symlink from corelib_vlbox.o to corelibvlbox.o let the wx library complie, but my program is still creating errors regarding char * vs wchar_t *. Trying the 3...
by GeatMaster
Sat Feb 04, 2017 1:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling with C++14?
Replies: 6
Views: 2609

Re: Compiling with C++14?

Now it (wxWidgets library compile) is giving me: ar: gcc_mswu\corelibvlbox.o: no such file or directory. Also it wouldn't run at first because it was doing this: mkdir ../../lib/gcc_lib/mswu instead of this: mkdir -p ../../lib/gcc_lib/mswu/wx (I'm not too familiar with fixing configure files) My own...
by GeatMaster
Sat Feb 04, 2017 4:58 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling with C++14?
Replies: 6
Views: 2609

Compiling with C++14?

I'm trying to build an application I've already tested on kubuntu on Windows 8.1, and I'm getting an error "wcsdup was not declared in this scope" according to this: https://forums.wxwidgets.org/viewtopic.php?t=32214 The problem is that I'm using 2 different C++ versions, my application us...
by GeatMaster
Wed Feb 01, 2017 1:54 pm
Forum: General Development
Topic: Need help transitioning from Qt to Wx
Replies: 4
Views: 2863

Re: Need help transitioning from Qt to Wx

doublemax wrote:
Is there an equivalent of QPainter?
Without knowing what it does, i can't tell. If you want to draw into a bitmap, you can use a wxMemoryDC and use "normal" wxDC or wxGraphicsContext methods.
wxGraphicsContext was the equivalent, thank you!
by GeatMaster
Wed Feb 01, 2017 1:49 pm
Forum: General Development
Topic: Need help transitioning from Qt to Wx
Replies: 4
Views: 2863

Re: Need help transitioning from Qt to Wx

Thank you! QPainter is a software renderer that can render simple 2D shapes like lines and boxes as well as text. It also allows multiple rendering contexts without the slowdown of GL context switches. It's not that hard to manually make one that does the lines and boxes, but I don't know how to add...
by GeatMaster
Tue Jan 31, 2017 8:27 pm
Forum: General Development
Topic: Need help transitioning from Qt to Wx
Replies: 4
Views: 2863

Need help transitioning from Qt to Wx

Hello, I'm trying to convert an application I've written from Qt to Wx for licensing reasons, luckily I thought this might happen and barely integrated the GUI at all, in favor of a C adapter; however even then I'm having problems. So I'm having trouble figuring out how to do things in Wx that I cou...