Advertisement Jump to content
Sign in to follow this  
MetaKnight

Managed Device to Texture Copy

This topic is 4904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im new to managed DirectX and Im not sure how to copy the backbuffer from the Deivce to a Texture? what's the best way to do this?

Share this post


Link to post
Share on other sites
Advertisement
May be I didnt ask the question right, what I want to do is this:

Copy a surface to a texture?


At least is there a way to do that? Or am I out of luck?

Share this post


Link to post
Share on other sites
Quote:
Original post by MetaKnight
At least is there a way to do that? Or am I out of luck?

You should just be using a RenderTarget instead. Instead of rendering to the backbuffer, then trying to copy it to a texture, you can just render directly to the texture.

Check out this tutorial.

Share this post


Link to post
Share on other sites
Hi there MetaKnight,
How are you doing?

[The Problem]
Render to Texture

[The Solution]
You could also read my tutorial and download the source. It's in Managed DirectX and C#.

Render to Texture

I hope this helps buddy, take care.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!