Open gl vs Direct X 8 4 2d
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
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
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.
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
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
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
Look at the sdk examples for the DD UTILITY classes, they made a nice class wrapper for DD it is pretty spiffy too...
It went snap...
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...
He was most likely refering to translucency (alpha blending).
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
Just wondering how DirectDraw is actually quicker?
~S''Greth
~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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement