Feb 27th, 2004, 08:45 AM
Apr 20th, 2004, 02:43 PM
NB: Always add the green check mark to all the threads you are making that gets solved. Simply edit your first post, and add to the subject line [Resolved]
If you want to write a tutorial for this FAQ please submit them to the Utility Bank and put "Tutorial" at the start of the thread title. Then it will be verified and added to the tutorials section. Also send either Electroman or NoteMe a PM to tell us the link to it and we will add it .
1. OpenGL or DirectX:
2. VB: DirectX samples/tutorials:
3. VB: OpenGL samples/tutorials:
4. C++: DirectX samples/tutorials:
5. C#: Managed DirectX samples/tutorials:
6. C++: OpenGL samples/tutorials:
7. C++: Win32 tutorials: [New]
8. Where to download back dated DirectX SDKs:
9. Vertex & Pixel Shaders
10. Free Game Engines:
If there are other questions, answers, links or tutorials you want to add to the FAQ, please post in the FAQ Discussion Thread. But if your answer is not here, it does not mean that it is not meant to be found. Try the button. You will probably find it there.
Last edited by Electroman; Dec 5th, 2005 at 11:00 AM.
Jun 15th, 2004, 04:29 PM
DirectX Starter Projects
Getting Started in DirectX
As many members here will tell you www.DirectX4VB.com is a great site if you want to get started in using DirectX with VB. However such a resource for C++ is rather well hidden (if it exists).
The point of this post is to give you a head start in creating DirectX games, be it C++ or VB. I have been creating a C++ project, with the help of NoteMe, to make an optimised C++ & Dx9 project. We have now got it to the stage where its in a working state and we can release it to all of you as a head start.
This project was creating in VC++.NET 2003 however I also created a project file for VC++6 incase you don't have .NET 2003. The project runs extremely fast and doesn't have any frame limiting implemented so it has an FPS far higher than any monitor will display. All this nice stuff is left for you to do but all the tricky things like initialising the project and getting it to work smoothly has been done.
For example we also coded the device recovery so if you run it in Fullscreen mode and Alt + Tab then it will pause your game and let other apps take control untill it is given focus back. At which point it correctly restores the device. When the application isn't active it will suspend both Threads until focus is given back.
The more impressive part of it is that it is optimised to take advantage of Hyper-threading processors. The Game runs two threads, one handles the windows messages while the other does all the game code. The WinThread is also optimised so that it never uses up more processing cycles than it needs so that the GameThread gets the most cycles possible.
Well your probably sick of reading by now so heres the project files:
VC++.NET 2003 Version (508KB) Last Updated 17/6/2004
VC++6 Version (22KB) Last Updated 17/6/2004
Notes: The .NET one is bigger but this is mainly because of the nbc file.
The VC++6 one doesn't have __declspec(align(4)) on the variables that span threads but I have solved this by using #pragma pack(4).
One extra thing, if you have your own project you want to submit here just let me know.
If you want to submit your own project here then let me know.
If your wanting to discuss anything about these projects then please use the Discussion Thread.
Last edited by Electroman; May 5th, 2005 at 09:22 AM.
Jan 30th, 2005, 12:28 PM
Click Here to Expand Forum to Full Width
Survey posted by VBForums.