Archived

This topic is now archived and is closed to further replies.

NEWBIE, Textured Quads

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

Ok, so ive created a nice little two dee game engine using textured quads, it comes up in fullscreen, but all i see is black, and i have a feeling its because all my rendering is being done to the back buffer, is this true? and if so, how do i present my back buffer? just get a pointer to it and use the present function? then what about the primary surface? argh this hurts my brain, especially after an hour of coding

Share this post


Link to post
Share on other sites
IDirect3DDevice9 :: Present() is what you're looking for. It swaps the back buffer with the primary.

Call it after EndDrawing(). You can use all NULL parameters.

Edit: Function name got turned into a damn smiley

[edited by - glassJAw on December 1, 2003 1:08:51 AM]

Share this post


Link to post
Share on other sites
hahaha, alright thanx, actually, apparently im more of a n00b than i thought, i have no enddrawing function call, i guess ill just call it after im done rendering? thanx

oh, theres an EndScene() maybe thats what u were talking about, cuz i just went looking for the end drawing, but also, do i hafta do anything in my wndproc to make my stuff show up?

[edited by - Ademan555 on December 1, 2003 1:15:43 AM]

Share this post


Link to post
Share on other sites
I belive he is taking about EndScene(). Also, remeber to call SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1) as you init Direct3D - else you wont see a thing.

Share this post


Link to post
Share on other sites
Well, i think thats exactly what i didnt do :-D thanx

Boo i did do it and still no render, right now im using debug quads, where should i put them (where is visible?)

[edited by - Ademan555 on December 1, 2003 1:27:12 AM]

Share this post


Link to post
Share on other sites