Open gl vs Direct X 8 4 2d

Started by
7 comments, last by Doominic 22 years, 10 months ago
Which is better for 2d?
Advertisement
As I''m sure that everybody will point out, both API''s have the same functionality and using one over the other really won''t deal you any more benefit other than OpengGL''s multi-platform functionality, but you can also get DirectX wrappers for *nix platforms too...
BTW, technically, DirectDraw that was released for DX8 is unchanged since DX7 so you''d be using DX7''s functionality. It would be a better choice to acutally use D3D/OpenGL3D and billboard your 2D for more features and performance.

~S''Greth
"The difference between insanity and genius is measured only by success."~Bruce Feirstein
It''s a personal opinion unless you''re targeting other platforms. OpenGL works fine for me in 2D. DirectX works fine for other people in 2D.

Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
define better.
directdraw7 will most likely be quicker. yet it lacks some very basic functions. eg transparancy + sprite rotation(apart from IIRC 90 +180 270 degrees).

http://members.xoom.com/myBollux
DD does have transparency
  CSurface * pSurface = new CSurface;pSurface->SetColorKey(RGB(0,244,0));  

Look at the sdk examples for the DD UTILITY classes, they made a nice class wrapper for DD it is pretty spiffy too...
  if(pSurface->IsColorKeyed)     m_pddsbackbuffer->blt(dst,pSurface->GetDirectDrawSurface(),src,DDBLT_WAIT | DDBLT_KEYSRC, NULL);  




It went snap...
It went snap...
He was most likely refering to translucency (alpha blending).

Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
Just wondering how DirectDraw is actually quicker?
~S''Greth

quote:Original post by zedzeek

define better.
directdraw7 will most likely be quicker. yet it lacks some very basic functions. eg transparancy + sprite rotation(apart from IIRC 90 +180 270 degrees).

http://members.xoom.com/myBollux


Woops...sorry for the anon post above
~S''Greth
"The difference between insanity and genius is measured only by success."~Bruce Feirstein
For Basic 2D, go with LPDIRECTDRAW7

------------------------------------------------------------
I wrote the best video game ever, then I woke up...

Grandus.Com
------------------------------------------------------------I wrote the best video game ever, then I woke up...

This topic is closed to new replies.

Advertisement