Adding Pictures to C++ codes

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2009
Posts: 5
Reputation: Arw is an unknown quantity at this point 
Solved Threads: 0
Arw Arw is offline Offline
Newbie Poster

Adding Pictures to C++ codes

 
0
  #1
May 18th, 2009
Good day programmers
I am a beginner and I am designing a game with C++ using Microsoft Office Visual Studio 2005.
I need to add pictures to it, and I wonder if there could be some code to add or open a picture.
Could someone please guide me?
Thank you.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 629
Reputation: daviddoria is a jewel in the rough daviddoria is a jewel in the rough daviddoria is a jewel in the rough 
Solved Threads: 46
daviddoria daviddoria is offline Offline
Practically a Master Poster

Re: Adding Pictures to C++ codes

 
0
  #2
May 18th, 2009
If it's a 3d game, you'll have to use either openGL or directX and use some sort of texture mapping.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 152
Reputation: amrith92 is on a distinguished road 
Solved Threads: 17
amrith92's Avatar
amrith92 amrith92 is offline Offline
Junior Poster

Re: Adding Pictures to C++ codes

 
1
  #3
May 18th, 2009
Hi!

Firstly, if you're a beginner, then its better if you model your game as a text-based game. Game Programming using graphics, audio etc can quickly become overly complicated if you have little or no previous experience in C++ (trust me on this). You would have to worry about a whole load of new terms/methods of programming.

If you meant that you are a beginner in Game Design and Programming, and you would like to create a game quickly and/or you would like this project to be a learning process, then I would suggest you learn to use these Game Engines that have been pre-built and tested:

1. Irrlicht Game Engine - found here

2. Since you're using VC++, then DarkGDK - found here

3. If you are looking for a powerful, yet easy to manage, and cross-platform game engine, then CEGUI is more than upto the job. You can find it here.

But a good knowledge in either DirectX or OpenGL would help substantially when you are working with graphics.

Also note that game design is envisioned or planned according to its future functionality, i.e, it may have a GUI in the future(if its a text-based game). If you haven't planned for a GUI proactively then check whether your current classes can accommodate a graphical interface. If it can't, then there's a likely chance that you would have to completely redesign your whole game...

Anyway, Hope this helped!
Last edited by amrith92; May 18th, 2009 at 1:59 pm.
"C++ : Where friends have access to your private members."
C++: You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying, "That's me, over there."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC