With C# and Direct X is there a way to simply plot a pixel onto the screen? Or do you always have to draw polygons?
With C# and Direct X is there a way to simply plot a pixel onto the screen? Or do you always have to draw polygons?
Boy you stink, go take a shower before you continue to code. Better do your laundry and spray your chair too.
The one and only resource for finding information.
Next version of windows released!!!!
It really depends on what you're going for. You can lock the back buffer and manipulate the pixels that way, but it won't be fast. What exactly do you want to do?
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Well I can draw a triangle or square onto the screen, but I don't know how to simply draw a pixel at "x,y". Or mkae the triangles wireframe they always have a color.
Boy you stink, go take a shower before you continue to code. Better do your laundry and spray your chair too.
The one and only resource for finding information.
Next version of windows released!!!!
You can make the rendering wireframe by setting a render state:
Otherwise you can lock the back buffer like i was saying and manually manipulate the bits. You have to create the device with the lockable back buffer flag and then use the IDirect3DDevice9::GetBackBuffer method. You can look into the docs for specific params and such.Code:pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers