Skip to main content
gamedev.net
🔒 Locked

window (not windows) programming?

Started by imperial dwarf Nov 26, 2001 at 2:05 PM 1 replies 350+ views
Original Post
imperial dwarf
imperial dwarf
How the heck can you get separate windows on your screen, each independent from what you’re doing with the rest. My intent is do get a scrolling map with status bars on the right side and the bottom of the screen. What I thought of is to have the scrollable map and the bars in different segs of the memory. So the only thing to do is to combine the viewable part of the map with the bars before scanning. However there my theory breaks down. How do you combine them without messing the whole memory and in reasonbale speed? It should scroll halfway smoothly after all. Maybe some weird graph mem ops? I’ve really no idea, besides split screen of course, which is not relly helpful. Any ideas or recommendations are welcome! By the way, I’m working with TP 6.0 and integrated asm. I know that directx and visual c are the future but hey, did you never want to invent the wheel anew?
jermz
jermz
Do you actually want to have different windows or just different areas of the the same screen? By this i mean, are you going to have separate windows that people can move around and may overlap or are going to take control of the entire screen and split it into sections?

If you have separate windows its fairly easy. Each one will have its own drawing procedure that your program should call whenever one of them needs to be updated. If its different areas of the same window, then you need to section it of or else draw things in the proper order.

For each portion you need, make sure you set the clipping region correctly so that drawing operations only affect that area and don''t "bleed" into the others. Then iterate through all the portions and call the appropriate drawing code. If you need to have something that is atop another, like a floating health meter or whatever, just draw that after all the drawing of a portion is complete. Then after you have drawn everything, copy your backbuffer, flip your page or whatever and blast it to the screen.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.