0
$\begingroup$

I'm interested in direct3d game programming and I'm just a beginner. I'm familiar with the Win32 API and i was wondering... how to put a certain pixel somewhere in the window is there like a function or anythting? thank you...

$\endgroup$
2
  • $\begingroup$ Welcome to CG. I would recommend starting with some DirectX tutorials. You can find plenty of them on the internet. Personally, I have never worked with DirectX, but with OpenGL. "Just drawing" a pixel requires you to do some rather complicated setup and to get a basic understanding of how modern graphic cards put the pixels onto your screen. So I am not sure if you will get an answer to your question that will be helpful to you. Also, we need more details about what you have done so far and what exactly the problem is you are facing. $\endgroup$
    – wychmaster
    May 10 at 18:00
  • $\begingroup$ I'd recommend googling for a "Hello triangle" example (for d3d of course), that will contain all that is needed to do basic setup and basic drawing $\endgroup$
    – PaulHK
    May 11 at 5:42
0
$\begingroup$

there is no direct way to place a pixel on a window I am afraid. An indirect way would be to draw a small quad equal to the size of a pixel in relation to your window

and essential y d3d 11 and 12 are most useful to draw geometry So I recommend you start from there and take your creativity ahead

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.