Sea++
March 16th, 2009, 12:59 PM
I am attempting to create a game which renders the perceived 3d objects as 2d sprites on the screen in an isometric arrangement. Although I mention that it is arranged isometrically this is somewhat irrelevant to the topic.
I have spent the past few days learning c++ (enough to write what I want to write apart from displaying graphics); I program mostly in php so I'm used to simple functions which work without configuring which you can arrange to your heart's content to do exactly what you want in a few minutes. C++ is a lot different.
Back to the point. I "simply" want to display images on the screen. I understand that due to C++ being platform independent that sort of function isn't built in so I went looking for libraries which do it. I know there are loads so don't just suggest them without reading on. The problem I came across is that I'm using OS X with X Code so the windows libraries don't work and the others with examples didn't work or presumed I had libraries I didn't (don't ask what, this topic is aimed to assist future readers and not just myself).
I know that there have been loads of requests like this from beginners which have ended fruitless so please try and make your response as useful as possible to both me and others like me who will find this topic.
In case the request isn't obvious:
I would like a working C++ code (the whole cpp file with includes and download locations for these includes if they are not built in) so myself and others can build up from a working example.
The reason I mentioned the isometric part is that when images are being overlaid there is a need for transparency on the top images to ensure the bottom images show through. If the rendering is being done pixel by pixel this isn't a problem (although pixel by pixel processing for a realtime 2d game will be extremely cpu intensive), but if the rendering is being done by a library it requires either GIF or PNG support (correct me if there are other formats).
I don't mean to sound as though I'm requesting this from you by right, but I know it would be appreciated by anyone trying to break into the world of graphics in C++.
Thanks to anyone who replies :)
I have spent the past few days learning c++ (enough to write what I want to write apart from displaying graphics); I program mostly in php so I'm used to simple functions which work without configuring which you can arrange to your heart's content to do exactly what you want in a few minutes. C++ is a lot different.
Back to the point. I "simply" want to display images on the screen. I understand that due to C++ being platform independent that sort of function isn't built in so I went looking for libraries which do it. I know there are loads so don't just suggest them without reading on. The problem I came across is that I'm using OS X with X Code so the windows libraries don't work and the others with examples didn't work or presumed I had libraries I didn't (don't ask what, this topic is aimed to assist future readers and not just myself).
I know that there have been loads of requests like this from beginners which have ended fruitless so please try and make your response as useful as possible to both me and others like me who will find this topic.
In case the request isn't obvious:
I would like a working C++ code (the whole cpp file with includes and download locations for these includes if they are not built in) so myself and others can build up from a working example.
The reason I mentioned the isometric part is that when images are being overlaid there is a need for transparency on the top images to ensure the bottom images show through. If the rendering is being done pixel by pixel this isn't a problem (although pixel by pixel processing for a realtime 2d game will be extremely cpu intensive), but if the rendering is being done by a library it requires either GIF or PNG support (correct me if there are other formats).
I don't mean to sound as though I'm requesting this from you by right, but I know it would be appreciated by anyone trying to break into the world of graphics in C++.
Thanks to anyone who replies :)