Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization: Call To Power > CtP-General/Help/Strategy > displaying things with G++ ?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP
CivGroups
Apolyton Storywriters' Guild (56): Not a Member - Join

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Mathemagician is offline Mathemagician
King
Darmstadt, Hessen, Germany, Europe, Earth, Solar System, Alpha-Quadrant, Milky Way
Sep 2002
time: 06:23
  Old Post 19-02-2005 19:29
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
displaying things with G++ ? Remove this text

i am using a G++ compiler under cygwin (unix emulation for windows) and Microsoft Visual C++ simply to maintain the code.
im looking for a simple way to simulate some kind of map where you navigate, move cursor/units, etc...
a very simple way will be fine. but i have problems with the fact that everything is shown in the original text window and will scroll out of sight when you type anything.
i have discovered some cursor control functions, so theoretically i could use colored letters to simulate a map. but that is rather limited and unsatisfactory.

does anyone know of a way to create a new window with displays, pixels, possibly mouse controls.
or can someone help to use that Visual C++ (6.0) thing ? i used it years ago, but have forgotten what little i knew.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:23
  Old Post 26-02-2005 18:51 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Browse Apolyton AD-FREE

I guess you could seek out some kind of graphics library...

Whatever you do, be sure to keep the display component seperate from the unerlying engine to make it easy to rewrite using a different graphics system if you want.

VC++6 should have several tutorials with it, which aren't terrible.

Mathemagician is offline Mathemagician
King
Darmstadt, Hessen, Germany, Europe, Earth, Solar System, Alpha-Quadrant, Milky Way
Sep 2002
time: 06:23
  Old Post 26-02-2005 19:10
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by J Bytheway
I guess you could seek out some kind of graphics library...


hmm. yeah. i was hoping someone would know one. but for the moment, it doesnt even have to be a real graphics library, rather some commands, standard or not, to control cursor, window, pixels, ...
simple things. just to get started.

quote:
Originally posted by J Bytheway
Whatever you do, be sure to keep the display component seperate from the unerlying engine to make it easy to rewrite using a different graphics system if you want.


you mean i should do all the graphics stuff in an independent module or something, so that the main program simply says something like "graphics.drawThings()" or so ?

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:23
  Old Post 26-02-2005 19:50 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by Mathemagician
hmm. yeah. i was hoping someone would know one. but for the moment, it doesnt even have to be a real graphics library, rather some commands, standard or not, to control cursor, window, pixels, ...
simple things. just to get started.


All I can offer is http://www.gtk.org/

quote:
you mean i should do all the graphics stuff in an independent module or something, so that the main program simply says something like "graphics.drawThings()" or so ?


Something like that, yes. Just avoid having code that relates to I/O in the same class as code that checks or executes game logic - that's the benefit of object-oriented programming.

Mathemagician is offline Mathemagician
King
Darmstadt, Hessen, Germany, Europe, Earth, Solar System, Alpha-Quadrant, Milky Way
Sep 2002
time: 06:23
  Old Post 26-02-2005 20:16
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Tired of ads?

thanks for the help. will check it out.

Ari Rahikkala is offline Ari Rahikkala
King
Unreported loss of streaming in atomic read operation
Oct 1999
time: 07:23
  Old Post 02-03-2005 21:44 Visit Ari Rahikkala's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

Gtk+ is for interfaces... for pushing pixels to the screen, SDL is probably a good idea.

Mathemagician is offline Mathemagician
King
Darmstadt, Hessen, Germany, Europe, Earth, Solar System, Alpha-Quadrant, Milky Way
Sep 2002
time: 06:23
  Old Post 02-03-2005 21:50
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

thanks.
will look into all that when i find time.

any specific experience on how to do it from inside a cygwin shell ?

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:23.
Apolyton Time is 00:23.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0401 seconds (87.74% PHP - 12.26% MySQL) with 44 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net