Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old April 7th, 2004   #1 (permalink)
Registered User
 
stilz's Avatar
 
Join Date: Jul 2002
Location: Ngemu?
Posts: 606
any good place to learn DirectDraw/3D or OpenGL?

im looking for tutorials for either one of them. uh, something that starts from the very basic, like how to set them up and things. i tried several, and their codes just won't run on my school's machine /w visual c++ or visual studio c++ .net ...or something like that. btw, im really confused about those stuff. what's the deal /w studio or .net? what advantages do they offer over other compilers?
i read somewhere that you need the SDK for creating directx programs, is that correct? or could you get the libraries somewhere? (legally, of course). yeah... the graphic API or what's it called we use back in highschool was Cmugraphics, and i think i should move on now.
thanks guys and girls
__________________
To all emulator authors and contributors: without your hard work, we'd be without many hours of enjoyment and unable to relive fond memories of childhood. Thank you.
stilz is offline   Reply With Quote
Old April 7th, 2004   #2 (permalink)
_E_
Administrator
 
_E_'s Avatar
 
Join Date: Aug 2002
Location: somewhere
Posts: 8,590
msdn.microsoft.com , grab the Direct X9 SDK (summer update) from there.It contains samples, tutorials and the DX libraries needed. Beware though, You should be at a very good level in C++ and be familiar with windows programming. Otherwise, it will just confuse you and you wont gain anything from it

Yours,
-Elly
__________________
-= Now watching=-
_E_ is offline   Reply With Quote
Old April 8th, 2004   #3 (permalink)
Registered User
 
stilz's Avatar
 
Join Date: Jul 2002
Location: Ngemu?
Posts: 606
wow.. didn't know you could just download the SDK, thought you have to subscribe or pay couple hundred $ to get it. uh, i dont know if i'd say i'm 'very good' with c++, maybe 'fairly familiar'.
thanks
__________________
To all emulator authors and contributors: without your hard work, we'd be without many hours of enjoyment and unable to relive fond memories of childhood. Thank you.
stilz is offline   Reply With Quote
Old April 8th, 2004   #4 (permalink)
A1C
 
Ramsus K's Avatar
 
Join Date: Jan 2004
Location: California
Posts: 230
If you haven't worked with the Win32 API, I'd suggest learning some of the basics. Try winprog.net and work your way through their tutorials. Be aware that it teaches pure Win32 API, which is written in C, but you can use it just fine in C++.

If you don't have any trouble with learning basic Windows programming (minus the Hungarian notation), then move on to DirectX. Just make sure you understand how the preprocessor works, as well as pointers in relation to arrays, pointer arithmetic, and memory management in general. A firm understanding of pointers is a must.

Also, keep in mind the DirectX SDK is a few hundred megabytes in size, so start downloading it sooner rather than later. That way, when you get there, you'll have it installed and ready.

As for compilers, if you go with Visual C++, use the latest Visual Studio version, since 6.0 is horribly antiquidated.


You can also do SDL/OpenGL using Bloodshed C++. The learning curve isn't as great, the APIs are easier, and your code can be easily ported to other OS's. You don't have to learn any quirky Win32 API stuff either.
Ramsus K is offline   Reply With Quote
Old April 8th, 2004   #5 (permalink)
Registered User
 
stilz's Avatar
 
Join Date: Jul 2002
Location: Ngemu?
Posts: 606
can't you also do OpenGL with other compilers as long as you include the uh... libraries? What are the ups of Bloodshed C++? The only one i have experience so far is Codewarrior learning edition... ...
__________________
To all emulator authors and contributors: without your hard work, we'd be without many hours of enjoyment and unable to relive fond memories of childhood. Thank you.
stilz is offline   Reply With Quote
Old April 8th, 2004   #6 (permalink)
A1C
 
Ramsus K's Avatar
 
Join Date: Jan 2004
Location: California
Posts: 230
I can give two VERY good reasons:
  • It's open source and free.
  • The license doesn't place any restrictions on you. You can develop any software under any license you want without having to worry about royalties or "student edition" popups.

Besides that, it's a fairly decent IDE.

It also uses the Windows port of GCC, which is one of the most up to date and standards compliant C/C++ compilers you can use. GCC is the default compiler used by Apple for Mac OS X, and it's also the compiler used by all of the Linux distributions out there as well as NetBSD, FreeBSD, and OpenBSD.

GCC also has many ports to OS's like Irix and Solaris. It can even be used to cross-develop software for gaming systems like the Gameboy Advance and the PS2.


Of course, that's all fine and dandy, but if you have money and all you want is to do Windows programming, especially if it's DirectX and MFC, then Visual C++ is probably your best bet. Just get the latest version.
Ramsus K is offline   Reply With Quote
Old April 8th, 2004   #7 (permalink)
Registered User
 
stilz's Avatar
 
Join Date: Jul 2002
Location: Ngemu?
Posts: 606
thanks man, i'll go look for it.
do you know good books or websites that teach OpenGL?
__________________
To all emulator authors and contributors: without your hard work, we'd be without many hours of enjoyment and unable to relive fond memories of childhood. Thank you.
stilz is offline   Reply With Quote
Old April 9th, 2004   #8 (permalink)
A1C
 
Ramsus K's Avatar
 
Join Date: Jan 2004
Location: California
Posts: 230
There are two legendary OpenGL books known as the Red book and the Blue book (If I recall correctly). Old versions of these two books should be available online. The older version of the Red book should be good enough to learn the basics from.

Also, check out http://www.gamedev.net and http://nehe.gamedev.net/
Ramsus K is offline   Reply With Quote
Old April 9th, 2004   #9 (permalink)
Registered User
 
stilz's Avatar
 
Join Date: Jul 2002
Location: Ngemu?
Posts: 606
thanks man, study time
__________________
To all emulator authors and contributors: without your hard work, we'd be without many hours of enjoyment and unable to relive fond memories of childhood. Thank you.
stilz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 13:31.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5