Jump to content

  • Log In with Google      Sign In   
  • Create Account

open GL or DX???


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Squirrel   Members   -  Reputation: 122

Like
Likes
Like

Posted 22 October 2001 - 03:16 PM

Which one is better? I hope the answer is Open GL because that stuff actually compiles with my cheap compiler (Borland c++). This compiler of mine does not even try to compile directX code. It will trow 26 errors right off the bat. No question asked. Is there something like directdraw for openGL? I want to be able to used 2d graphics for now. I find that for the games I want to start making, 2d will be better. Thanks! Ryan

Sponsor:

#2 Hikeeba   Members   -  Reputation: 122

Like
Likes
Like

Posted 22 October 2001 - 03:25 PM

Neither is better. It''s all about personal preference really.

I prefer OpenGL. I spent four months working with DirectX and still can''t make it do what I want reliably. I''ve been working with OpenGL for a couple weeks and am really starting to understand the basics.

If you want to do 2d, then you can use OpenGL''s orthographic projection. Check out nehe.gamedev.net for info on that.

If you need more, search the forums.

I wanna'' ride on the pope mobile.

#3 Maximus   Members   -  Reputation: 124

Like
Likes
Like

Posted 22 October 2001 - 04:38 PM

Why not use both? My engine uses OpenGL for graphics and DirectInput for, you guessed it, input!

#4 aftermath   Banned   -  Reputation: 100

Like
Likes
Like

Posted 22 October 2001 - 04:50 PM

Hey, My angine useses id going to use Direct3D, DirectDraw,DIB,Ogl... the works. I will use this method by uatalizing dll interfaces.

AfTeRmAtH

#5 GKW   Members   -  Reputation: 200

Like
Likes
Like

Posted 22 October 2001 - 06:05 PM

I like stories.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato

#6 Obelix   Members   -  Reputation: 122

Like
Likes
Like

Posted 22 October 2001 - 11:07 PM

You should not have any problems with Borland and DirectX. Here is the libraries for DX8:
http://www.geocities.com/foetsch/cbuilder.htm
If you still get errors so post them in the DirectX forum so other Borland users may help you.

I would avoid DirectDraw anyway. It is not very easy and not very fast. In the case you want to create 2D games and do not need high resolution is it perhaps better to use a wrapper like SDL or similar. Makes things easier.

#7 Squirrel   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 October 2001 - 01:23 PM

I''ll stick with OpenGL then, I used it a bit and it''s not that complicated. The only thing I find is that it can be long when involving creating allot of things though but I''ll get used to it.

#8 masonium   Members   -  Reputation: 118

Like
Likes
Like

Posted 23 October 2001 - 01:26 PM

aftermath, how do you use OGL and D3D together? Isn''t that what you said?

#9 jenova   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 October 2001 - 01:58 PM

2D sprites. hmm, let me see. a quad (primitive) with a texture (sprite). pretty simple. just use the glOrtho function for the projection matrix and leave the modelview matrix as the identity.

this question is getting kinda old. seriously, part of programming is determining a solution through trial and error. nothing wrong with asking questions, but this is ridiculous.

peace.

#10 Maximus   Members   -  Reputation: 124

Like
Likes
Like

Posted 23 October 2001 - 06:38 PM

quote:
Original post by masonium
aftermath, how do you use OGL and D3D together? Isn''t that what you said?


Id say he means having his renderer functions in a DLL, which is dynamically loaded. This way he can code a version in D3D, and one in OGL, etc, and just load whichever the user wants to use.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS