Search found 189 matches

by geon
Tue Mar 15, 2005 11:43 am
Forum: C++ Development
Topic: Rendering with wxGLCanvas using THREADs
Replies: 22
Views: 4427

I don't think wx (or any other event-based system) can handle your speciffic needs in a good way. Try to use SDL for the opengl part. SDL is more sitable for your needs. I have heard wx and SDL will play wll together, so it shouldn't be a problem.
by geon
Sat Mar 12, 2005 11:49 am
Forum: C++ Development
Topic: Rendering with wxGLCanvas using THREADs
Replies: 22
Views: 4427

Don't try to lock your framerate. You will allways fail.

Instead, adjust the speed of your animation to the rendering speed, using the delta-time for each frame, or similar.
by geon
Fri Mar 11, 2005 11:15 am
Forum: C++ Development
Topic: Open the same file twice
Replies: 13
Views: 2572

You will have to keep track of the files yourself. Instead of just opening the file, keep a list of open files and check if the requested file is allrerady open. If it is you can braing that documant to the top, or anything else.
by geon
Tue Mar 08, 2005 11:55 am
Forum: C++ Development
Topic: Viewport Mouse Capture
Replies: 6
Views: 1450

Could the mouse warping spawn another mouse event? In that case, you have an infinite loop you need to brake. I don't know the implementation of the event handling, but if there is a que, it will be more difficult to fix. Otherwise you could keep a static counter in the mouse event handling function...
by geon
Fri Mar 04, 2005 9:33 am
Forum: C++ Development
Topic: Viewport Mouse Capture
Replies: 6
Views: 1450

You might not need to actuallt move the pointer. The messages should all be directed to your window anyway, since it has the capture. And if the pointer is invisible, it won't make much difference anyway.
by geon
Wed Mar 02, 2005 11:43 am
Forum: C++ Development
Topic: Viewport Mouse Capture
Replies: 6
Views: 1450

Use wxWindow::CaptureMouse to direct all mouse input to your window. Hide the cursor with wxWindow::SetCursor. (You will ned to set the cursor to a blank bitmap.) Then use wxWindow::WarpPointer to keep the pointer inside the window.
by geon
Fri Feb 25, 2005 11:17 am
Forum: C++ Development
Topic: How to use wxImage to help load OpenGL texture?
Replies: 5
Views: 1244

don't delete the image object while you use this pointer
The pointer will not be touched again by opengl after this function has returned, so you can safely delete the memmory. THe necessary memcopies are handeled internally by opengl.
by geon
Fri Feb 25, 2005 11:11 am
Forum: C++ Development
Topic: librarys FTP & Webcam
Replies: 2
Views: 858

I found a webcam library on the official wx site. I can be found under "contributions".

http://www.surveyorcorp.com/wxlivid/index.html

The bad part is that the project seems to be dead since 2001...



I'm pretty shure the class wxFTP can do any ftp actions you want.
by geon
Thu Feb 24, 2005 10:55 am
Forum: C++ Development
Topic: Parallel thread (wxThread) with GUI?
Replies: 3
Views: 1304

You don't need to start your frame in a new thread. If you are doing some background processing in a frame, just create the frame as usual, then start a new thread to do the processing. All event etc. will still be handled by the main thread.
by geon
Wed Feb 23, 2005 10:03 am
Forum: C++ Development
Topic: I want to use OpenGL extensions, how...?
Replies: 1
Views: 621

by geon
Mon Feb 21, 2005 11:33 am
Forum: C++ Development
Topic: GUI for command line
Replies: 8
Views: 1730

Jorg,I think he ment the other way around: to create a GUI for a command line tool.

That's perfectly possible, just use the wxExecute() function.
by geon
Thu Feb 17, 2005 1:00 pm
Forum: C++ Development
Topic: strange error on checkbox-event
Replies: 4
Views: 1117

Thats a WX bug, since the documentation clearly says the event is generated after the change.
by geon
Tue Feb 15, 2005 10:56 am
Forum: C++ Development
Topic: wxSlider inside a wxToolBar
Replies: 7
Views: 1539

Oops. Seems should read a bit more carefully.
by geon
Mon Feb 14, 2005 11:52 am
Forum: C++ Development
Topic: block everything on main dialog
Replies: 13
Views: 1782

"In the docs it states that Destroy handles all the events before closing the window." Then this is a wx bug since the window was disabled and should not generate any events in the first place. Maby this will work if you do this instead: MyDialog::onOk(wxCommandEvent& event) { Hide(); parent->Disabl...
by geon
Mon Feb 14, 2005 11:30 am
Forum: C++ Development
Topic: wxSlider inside a wxToolBar
Replies: 7
Views: 1539

shouldn't it be of some default width?
Not according to the documentation. But why did you set both Min and Max to zero?