Link to home
Start Free TrialLog in
Avatar of Sumia
Sumia

asked on

Game programming with c++

What are the advantages and disadvantages of game programming with only c++ not using directx or opengl.
Avatar of rickson
rickson
Flag of Australia image

it's simple to say that if not using direct x or open gl. it means u do not need the third party application/ dependency to run your program.
for example:
if u programe game without those opengl and etc.
means that when the user run the appication they do not need require those opengl dll or other stuff to run your application.

but the impact is:
-you need to create all the function.such as making effect (eg : lens flare, or shadow).

-the advantage : u can use an amount of library that help u preventing on self-coding such as creating effect.
Avatar of smitty1276
smitty1276

Keep in mind that those APIs were presumably written in C/C++ for the most part.  If you didn't use them you would have to needlessly write TONS of code that they have already written.  Why not use them?
It depends on you Sumia, if u want to make a small/simple game that stand alone(not require any installation such as directx runtime) that probably u can write all the things by yourself without depend on those API(directx or opengl)
is that true smittty1276?
I dont see how else you will be able to get all the graphix accelerators and thingy's to work? You want to start writing all the drivers for all the devices from scratch ... by the time u r finished ... all the cards and devices will be outdated and you'll have to start writing all over again for a whole new set of cards and peripheral devices ... that is of course if the manufacturers are prepared to give you all the intimate technical details you will need to write the code in the first place. If u r going to do any sort of dev, I do not see how u can use anything else but DX8.
Or OpenGL, of course.  
If you want to make a simple game that is text based you wouldn't need a graphics API.  If you know the WindowsAPI pretty well you could do some simple games using GDI in Windows.

I was assuming, though, that you are still learning.  If that is the case I think you would be best off using OpenGL for the graphics, and GLUT to handle your windowing.  They are both VERY easy to use, compared to learning Windows and DX.  

DX is pretty much the same as OpenGL... neither is really better (though you go over to GameDev.net and you'll see some big arguments about that one).  The only BIG advantage is that OGL will run on just about any platform.
Hello?
time to give or accept some comment or answer????
ASKER CERTIFIED SOLUTION
Avatar of pFaz69
pFaz69

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial