Sign in to follow this  

How to compose my pictures?

This topic is 4867 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

Hi, I'm very new to DirectX and have some questions. (Sorry in advance for the language,I'm no native english speaker.) From my days with TBitmap :) I'm accustomed to the possibility to create an imageobject and draw something on it. Then I could use this image/bitmap/whatever and draw it on another or even only a part of it. With DirectX I'm not sure how to do this. I only want to show some 2D-Images on the screen which I want to alter on runtime. But I only have one backbuffer, I can't create a new one, draw a picture into it, alter it anyway I like and draw it then on another one to draw the composition in the end to the backbuffer. But things like this are exactly what I want to do. I hope someone sheds some light into this for me. Thanks in advance, Fingolfin

Share this post


Link to post
Share on other sites
If you are doing Direct3D, you don't need to worry about the back buffer. Direct3D automatically handles that for you. Look into ID3DXSprite, it can do 2-dimensional quads for you.

It sounds to me like what you want is DirectDraw. It's been deprecated but you can still use it through the latest SDK. People will tell you to use Direct3D, but if you are sure you just want 2D and you don't need fancy effects, DirectDraw can be just as easy and give much lower system requirements.

Share this post


Link to post
Share on other sites
Hi,

I have to use DirectX9 so an older version is unfortunately no option. :(

But in fact I need many functions like DrawCircle which aren't anymore integrated in DirectX9 as I understand it. So, Sprites seem to be the way to go for 2d-like graphics operations but I also don't want to live without the "fancy effects".

Do you habe any ideas on that matter?

Fingolfin

Share this post


Link to post
Share on other sites
You could get a device context (or a Graphics object, if using managed libraries) for, for example, drawing circles and lines using Win32 (or .net) native methods.

It is always good to know some theory of 3d before using d3d, even if you do only use it for 2d operations. Once you've solidly understood how to produce something on the screen, you quickly realize that the possibilities are there to draw anything you want.

So, read up! And ask more questions here, if feeling unsure about something.

Kind regards,
-Nik

Share this post


Link to post
Share on other sites

This topic is 4867 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this