NEWBIE, Textured Quads
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
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]
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]
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]
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]
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.
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]
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]
Oops, sorry. I have a wrapper function that calls EndScene() and I called it EndDrawing() to confuse myself >_<
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement