Jump to content
  • Advertisement
Sign in to follow this  
lutzzz

DirectX/C/C#/C++ Programming Help

This topic is 4978 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

To create a mmorpg, must i know directx? And issit a must to know directx to create a game ? If so which programming languages need DirectX? C,C#.C++? Issit possible to create good games with C? I plan to give it a try.Although i know c++ is better. Last thing, wad type of games need the use of directx and wad type do not need? One mroe thing.. must i know Win32 to create games?

Share this post


Link to post
Share on other sites
Advertisement
The game gonna be on windows platform...must i erally noe directx to make a graphical game...cos i dun really noe how to put graphics by using c languague

Share this post


Link to post
Share on other sites
Quote:
To create a mmorpg, must i know directx?
No, you don't need to know DX, but it might well help...

Quote:
a must to know directx to create a game ?
DirectX is another tool in your shed. Use it if it's gonna help you out, but by no means is it the only tool at your disposal.

Quote:
which programming languages need DirectX? C,C#.C++?
Use whichever one suits you best. Do you have any experience with any of those languages? any other languages?

Quote:
need the use of directx and wad type do not need?
I refer to my previous answer - it's just another tool. Many games use it simply because it makes developing games a lot easier and a lot quicker. There isn't a definitive type of game thats for DX.

Quote:
must i know Win32 to create games?
You can get quite a long way without touching much Win32 code, but it will definitely help you out to at least understand the basic structures/designs and overview of the API.

Quote:
must i erally noe directx to make a graphical game...cos i dun really noe how to put graphics by using c languague
You could use GDI, GDI+, OpenGL or DirectX (to name a few). I'd personally choose DirectX, but thats influenced by the fact that I've been working with DX for 5yrs now [wink].

-----------------

As a general answer to your posts... you might well wanna do a lot of the basic research, I could be wrong but guessing from your post I'd say you're not an experienced programmer/games developer (that doesn't have to be a bad thing!). a MMORPG is a heavy-weight project. I've been making games of various types for years and years now, and I'd still be wary of taking on a full blown MMORPG without a lot of planning and a lot of free time.

hth
Jack

Share this post


Link to post
Share on other sites
I believe you should use c++, as it has oop and is the fastest there with c.

I use directx for all my games as I have learnt all the d3d,dsound,dmedia,dinput.

opengl is just as good but doesnt have the d3dx functions which can do calculations etc for you, instead of you having to do it yourself, eg directx is like windows, and opengl is like linux

Share this post


Link to post
Share on other sites
minor nitpick...

Quote:
opengl is just as good but doesnt have the d3dx functions which can do calculations etc for you
It's called GLUT (openGL Utility Toolkit?). Not having used it extensively, I can't say if it's better/worse than D3DX, but it's at least comparable.

hth
Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by lutzzz
so can i make a graphical game just by noeing c++ or c?


yes, but that will require learning about back buffers etc, eg using dc's,

eg you paint all your graphics for the frame onto a backbuffer( a dc) and then copy that backbuffer onto the screen.

So you should learn back buffering, bitblting, masking, and setpixel.

Share this post


Link to post
Share on other sites
and even to show it on the screen he'd need to call SOME API function somehow ... so NO, you cannot write a graphical program of any sort using JUST C++ (cause C++ ONLY provides stream input and output built in, not graphical) ... and c++ provides no means to play sounds etc ...

so what you need is a language (C++, C, C#, Java, Python, ruby, perl, etc ...)

and then you need to pick a primary platform or set of targeted platforms (Windows, Mac, Linux, etc ... like for console games you would pick XBOX, PS2, Gamcube, Gamboy Advance, etc ...)

and then you pick you primary progamming APIs / Platforms -

Such as:

Graphics core API -
OpenGL, Direct3D, DirectDraw, GDI, GDI+, Java2D, etc ...

Sound core -
OpenAL, DirectSound, SDL multimedia, DirectMusic, Win32 API ...

Input core -
GLUT input, DirectInput, SDL input, Win32 API

those 3 things pretty much require something not build into windows ... the most common choices for REAL games are:

1. Windows API and DirectX for everything (Half Life 2?)
2. Windows API and DirectX for everything but graphics, OpenGL for graphics (Quake 3)
3. Windows API and DirectX for everything but graphics and sound, OpenGL for graphics, OpenAL for sound (Unreal 2k4, maybe Doom 3)

For LEARNING or doing smalltime games, the more common choices are:

1. OpenGL for graphics with basic GLUT for input, no real windowing, and minimal multimedia (can add OpenAL as desired for sound)
2. OpenGL for graphics SDL for input, multimedia, windowing
3. DirectX for everything.

And then there are the all-in-one platforms, Java and .NET, of which .NET is much better at making games - because it allows full access to DirectX.

Personally, I found C# using pure .NET (GDI+) easy to develop basic apps for, and then C++ using .NET and DirectX seems better for games.

But really I like OpenGL best for 3D graphics, so I currently use DirectX for my non 3D stuff, and OpenGL (with GLUT) for my 3D experiments.

Share this post


Link to post
Share on other sites
Quote:
Original post by jollyjeffers
It's called GLUT (openGL Utility Toolkit?). Not having used it extensively, I can't say if it's better/worse than D3DX, but it's at least comparable.



GLUT does many things but is not comparable to D3DX. Mainly GLUT handles the creation and management of windows and their input. It also does a few other things, but all relate to window management.

Perhaps you are thinking of GLU which is a different library. It is more comparable to D3DX than GLUT, but still doesn't handle many of the things that D3DX handles. D3DX has helper functions for animation, math, meshes, precomputed radiance transfer, shaders, shape drawing, texturing, fonts, rendering to surfaces and env maps, sprites and a host of other things.


[Edited by - bit64 on December 1, 2004 12:32:46 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!