943,582 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2108
  • C++ RSS
May 18th, 2009
0

Adding Pictures to C++ codes

Expand Post »
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.
Similar Threads
Arw
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Arw is offline Offline
5 posts
since May 2009
May 18th, 2009
0

Re: Adding Pictures to C++ codes

If it's a 3d game, you'll have to use either openGL or directX and use some sort of texture mapping.
Featured Poster
Reputation Points: 437
Solved Threads: 204
Posting Virtuoso
daviddoria is offline Offline
1,968 posts
since Feb 2008
May 18th, 2009
1

Re: Adding Pictures to C++ codes

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.
Reputation Points: 130
Solved Threads: 22
Junior Poster
amrith92 is offline Offline
187 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Program crashes when I use SetWindowText();
Next Thread in C++ Forum Timeline: C++ Syntax problems/questions...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC