Skip to main content
gamedev.net
๐Ÿ”’ Locked

Pixel Plotting

Started by Tooko May 19, 2003 at 4:57 AM 1 replies 500+ views
Original Post
Tooko
Tooko
I know that when plotting individual pixels (via lpDDS->Lock()) in 16bit mode I use RGB() macro, what about for 24bit and 32bit? I don''t have a signature, sorry.
the future is just like the past, just later. - TANSTAAFL
S1CA
S1CA
In 24 and 32bit modes you just write complete bytes.

e.g. cast the surface pointer to a BYTE* and then access with the array operator:

psurface[2] = blah;
psurface[3] = blah;


--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedInย |ย Personal site
Tooko
Tooko
Ooh, thanx

I don''t have a signature, sorry.
the future is just like the past, just later. - TANSTAAFL

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.