Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Guys,

 

I'm using DirectX3D,

I'm trying to draw a Surface with a Transprent color - any idea of how i do that?

How can i set Surface ColorKey ?

And even when i set it, how do i StrechRectangle or UpdateSurface with this ColorKey as transperent?

 

I know i can use Texture - and ColorKey or Alpha, but i want to use Surface which is much faster.

 

Thanks, LDV

Posted
Surfaces are not much faster. Where did you get that idea?

 

Just plain expiriance:

When i draw using Surface i get to 60FPS

And when i draw Texture using Sprite class i get 30FPS.

 

LDV

Posted

My experience is completely the opposite. Not to mention that there are so many things that Surfaces can't do (colour keys being one of them).

 

If your sprites are running at half the speed of a surface copy, I'd guess that you aren't doing something right.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...