Jump to content
  • Advertisement
Sign in to follow this  
BigBeginner

Pixel drawing by DX8

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

Im trying to draw pixels like this: VertexData^.PositionRHW.X:= random(100); VertexData^.PositionRHW.Y:= random(200); VertexData^.PositionRHW.Z:= 0; VertexData^.Color:= D3DCOLOR_XRGB(random(255),0,0); Device.SetRenderState (D3DRS_LIGHTING, FALSE); Device.SetVertexShader(D3DFVF_XYZ or D3DFVF_DIFFUSE); Device.DrawPrimitiveUp(D3DPT_POINTLIST, 1, VertexData^, sizeof(MyPoint)); Device.Present (nil, nil, 0, nil); But I can see nothing :( every functions results D3D_OK. [Edited by - BigBeginner on August 2, 2005 4:14:27 AM]

Share this post


Link to post
Share on other sites
Advertisement
Ok, I have done it, (maybe was it RTFM?) thanx for all helping. Just one more:

I want to make alpha-blend pixels. The D3DCOLOR_ARGB' alpha bit doesn't work.
How do I make it alpha blend?? Just answer my last question :))))))

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!