Qbasicnews.com

Full Version: I need a favor.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
IMO you should use allegro. Its a wrapper for DirectX. Have a look at www.allegro.cc
Yes, yes, yes, we know! the man just wants an example program. And speaking as a person who's new to all this, I'd like to see it too.

By the way, if you're sitting here bitching about how DirectX sucks because there's mroe lines of code, you really should consider. Maybe 5% of computer users are going to use Linux. Maybe 3% have OpenGL, but don't have DirectX. But cards are designed with DirectX in mind, so it might be a good idea to get a template for the 50 line initialization and just learn it.
Also, the template is always the same. You code it once, then you reuse it every time. Allegro and SDL are just portable libs that do just this.

I may have code by a friend that does initialization stuff and draws a bitmap in C++ using DirectX I think. I'll ask for permission and I'll send it to you.
Allegro sucks ass, it's slow and useless.

I can give you an example of how to do 2d using DX8 in VB, but I don't know C well enough, sorry.

Lemme know if you still want a VB example.
STFU :evil: Allegro doesnt suck! It has excellent portability. Its pretty fast and provides millions of features that you dont have in directX.
Quote:STFU :evil: Allegro doesnt suck! It has excellent portability. Its pretty fast and provides millions of features that you dont have in directX.





I've heard about Allegro, and OGL... I've decided that I'm going to go with DirectX... Not Allegro, not OGL, not DirectQB... DirectX
. 'More lines of code' isn't one of those things that would affect my decision anyway...

And sure, Nathan. That would be pretty cool... Smile
Well, AFAIK making Cobra in C/C++ with straight DX is gonna take a while, and it'll be big. With Allegro...
Here's to putting pixels with a few lines of code!
Quote:Well, AFAIK making Cobra in C/C++ with straight DX is gonna take a while, and it'll be big. With Allegro...
Here's to putting pixels with a few lines of code!

Let's pretend DirectX is the only thing that exists for this moment...
Quote:Let's pretend DirectX is the only thing that exists for this moment...

Heh, I'm of that school of thought as well. The whole concept of a wrapper just doesn't really appeal to me, no matter how easy it makes it... It's like building a mansion but forgetting to install a door.

Anyhow, DirectX is a wierd bird, and opening a blank window with one pixel in it is like 200 lines, and I guarentee that even with the API installed, you'll never get it compiled. The best resource I've found is Andre LaMothe's book on Game Programming for Windows. It's really just a giant tome on 2d DirectX.

The only issue is that it's a little dated -- he talks about 8-bit colour a lot and deals in DirectX6.
Would you guyz stop yapping around about how big the code would be. Just give the man some code! :evil:
Pages: 1 2 3 4