Sign in to follow this  
hop

Should I Be Using This?

Recommended Posts

I'm just starting to make simple games using C++, and currently I'm using the Borland Graphics Interface libraries for the graphics. Is this a good way to learn and make simple graphics in games or should I start learning DirectX, OpenGL, or something else? Thanks!

Share this post


Link to post
Share on other sites
Well i havn't heard much mention of the Borland Graphics Libraries around here. Most people use DiretcX, OpenGL or SDL. I would suggest using one of these for two reasons. Each of these is likely to be more mainstream than what you are using now, secondly, coinciding with the first, your questions will be more answerable if they are based on more well known APIs.

Stay cool,

ace

Share this post


Link to post
Share on other sites
BGI is pretty dated. I would suggest using SDL or Allegro for doing simple 2D games instead. However, that may require you to download a new compiler.

Share this post


Link to post
Share on other sites
Thanks, I thought BGI might be dated because I hadn't seen anyone talking about it or asking questions. I think I'll try SDL because it seems pretty popular around here. Thanks for the help!

Share this post


Link to post
Share on other sites
If I recall correctly even at its time, it was at most used to render charts, never game development, back then for games, you would set the video mode with an ASM call, get a pointer to the video memory and start plotting pixels away, I am talking DOS era here.

Share this post


Link to post
Share on other sites
To be honest if you are learning the basics of game programming, it doesn't matter much what graphics library you are using. Using the BGI means you won't need to figure out how to get some external graphics library working and fix problems related solely to its connection to your compiler. That will let you focus on what you are trying to learn (regardless of what graphics API you use, most of what you do in the beginning will likely turn out to be horribly wrong and inefficient anyway).

Share this post


Link to post
Share on other sites
Quote:
regardless of what graphics API you use, most of what you do in the beginning will likely turn out to be horribly wrong and inefficient anyway


Oh yeah .... that's very consoling no matter how i try i will mess up anyway [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by Error98
Quote:
regardless of what graphics API you use, most of what you do in the beginning will likely turn out to be horribly wrong and inefficient anyway


Oh yeah .... that's very consoling no matter how i try i will mess up anyway [smile]


We all did it, and then learned from the crazy ideas we came up with how to do things properly. [wink]

Share this post


Link to post
Share on other sites
Quote:
Original post by Error98
Quote:
regardless of what graphics API you use, most of what you do in the beginning will likely turn out to be horribly wrong and inefficient anyway


Oh yeah .... that's very consoling no matter how i try i will mess up anyway [smile]


i don't think he meant that you will mess up, just that they first way you do it might not be the best way, but it will work, then from there you can research other ways and refine it. it'd be like developing a program to sort through a bunch of entries, and use a bubble sort it might not be efficient, but it will work. and the most important thing when learning is making it work, then worry about efficiency.

Share this post


Link to post
Share on other sites
Quote:
Original post by CoryK
i don't think he meant that you will mess up, just that they first way you do it might not be the best way, but it will work


Have you visited the "For Beginners" forum yet?! It is inevitable to mess up when programming; there's no such thing as a perfect programmer! Heck I remember some of the old problems I had when starting out...[headshake]

Anyways, I do agree with what Michalson has said, but I'd suggest at least taking a look at some of the other options first before just going on with BGI. I mean since you took the time to think about the future (questing wheter or not BGI was ok to use), then you should at least explore some of the other options avaliable, if and only if you can afford the extra time added from switching compilers/libraries. It's not always an easy transition, but hey, start now and get it over with, or wait until down the line and have yourself in a potential bad situation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this