Sign in to follow this  
BigBeginner

Pixel drawing by DX8

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this