New to Direct3D9

Started by
2 comments, last by utilae 19 years, 3 months ago
I was used to Direct3D7 before, where the front and back buffer had a name and I could blt from tempbuffer to back buffer, etc. With Direct3D9, all the tutorials I have found create a back buffer by saying how many you want. I see no example of creating front or back or offscreen surfaces, where I give them a name, etc. Anyone want to help me out. I want to know how to create front, back buffers and offscreen surfaces in D3D9. Also is flip not used anymore?

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

Advertisement
I believe this site might help: CodeSampler.com.
In DX9, during device creation you specify the width and height of your backbuffers and the number of them. No need to define the front buffer as is considered the same size and format. You may also specify a Z/Stencil buffer.

There is no Flip() function now. It has been replaced by the D3DDevice::Present() method.

There are some tutorials in the SDK, the first one is about device creation.

Luck!
Guimo
So how would I blt from an offscreen surface to the backbuffer?

And how do I create an offscreen surface.

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

This topic is closed to new replies.

Advertisement