Search found 9 matches

by matthew180
Sun Mar 15, 2009 3:04 am
Forum: General Development
Topic: Using SDL and OpenGL with wxWidgets to create a game editor
Replies: 11
Views: 5097

@matthew180 or any other: I'm curious, how do you design menus and UI? coding it or do you use any other program? Thanks a lot. Actually, I have not quite figured it out yet myself. I'm doing the emulator in wx primarily because I'm making a "programmer's" emulator which will allow single stepping,...
by matthew180
Thu Mar 12, 2009 6:29 pm
Forum: General Development
Topic: Using SDL and OpenGL with wxWidgets to create a game editor
Replies: 11
Views: 5097

I'm currently writing an emulator and so far using wx's wxGLCanvas class with a wxTimer is working out very well for frame rendering (I need a refresh every 16.6ms). Basically I merged the wxTimer based "render loop" and OpenGL examples available on the wx wiki. Using OpenGL also gives you the accel...
by matthew180
Mon Mar 09, 2009 1:43 pm
Forum: C++ Development
Topic: How to handle large files ?
Replies: 4
Views: 1082

You should be using memory mapping (mmap) for large files, especially if your access is going to be read only. Most platforms have a POSIX compliant implementation. Also keep in mind that on a 32-bit platform, the maximum file size you can deal with is going to be right around 2G, unless you are com...
by matthew180
Mon Mar 09, 2009 4:48 am
Forum: C++ Development
Topic: byte to bits
Replies: 7
Views: 1038

Your input and output are known fixed sizes, so drop the dynamic memory allocation, it is a waste of time and you have to remember to free the allocation. Since the calling function is going to be using the array of bits, leave the allocation up to the caller. If you care about performance, unroll t...
by matthew180
Mon Mar 09, 2009 4:08 am
Forum: C++ Development
Topic: How to open large file in utf-8?
Replies: 6
Views: 1766

You should be using memory mapping (mmap) for files that large, especially if your access is going to be read only. Most platforms have a POSIX compliant implementation. Also keep in mind that on a 32-bit platform, the maximum file size you can deal with is going to be right around 2G, unless you ar...
by matthew180
Fri Jun 20, 2008 1:21 pm
Forum: C++ Development
Topic: Using wx for emulators?
Replies: 6
Views: 909

Re: Using wx for emulators?

Hi! First of all this looks like a nice project :) Thanks. I've always wanted to write an emulator (I like low-level stuff like that) and the 99/4A was the first computer I ever had, so it is sentimental to me as well. Accuracy and timing are critical in an emulator though, so I need to make sure I...
by matthew180
Fri Jun 20, 2008 12:21 pm
Forum: C++ Development
Topic: Using wx for emulators?
Replies: 6
Views: 909

Maybe showing the code of this part can help. Well, currently the code is a miss-mash of pieces and parts from various examples and such, and I'm sure I'm getting plenty of it wrong right the moment (especially the signal I'm trying to send from the thread to the main app, that was a serious pain t...
by matthew180
Fri Jun 20, 2008 5:05 am
Forum: C++ Development
Topic: Using wx for emulators?
Replies: 6
Views: 909

Using wx for emulators?

Greetings, I'm working on an emulator for my classic computer of choice (TI-99/4A) and I was wondering if I'd be beating my head against the wall trying to use wx? I have the CPU almost done and it's time to get it out of command line mode and into a GUI (so I can do the VDP and start having more fu...
by matthew180
Tue Jul 31, 2007 5:14 pm
Forum: General Development
Topic: Controls in an OpenGL window?
Replies: 0
Views: 376

Controls in an OpenGL window?

I'm working on a somewhat non-standard type of application as far as the interface goes, and I need to present and accept form information via an OpenGL window (the app will only have one window and it will be OpenGL). Can I do this with wxWidgets? This is not a game, the amount of user interaction ...