Skip to main content
GameDev.net gamedev.net
🔒 Locked

GetPixel for D3D surface?

Started by FLaNK Oct 24, 2002 at 11:43 AM 0 replies 450+ views
Original Post
FLaNK
FLaNK
Hello, I''m working on a ''tank'' style game using D3D. I want to load a pre-drawn map (2D) and then have the player character walk along the terrain (for now just a green line). I wanted to do this by checking the pixel colour on the 2D map at the co-ordinates the player is located at (bottom, center pixel of the player sprite). Now I was wondering if I can actually do this by getting a DC from the map surface or texture, and then running a GetPixel()? I appreciate any light you could shed on this topic.

Topic Locked

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

Sign in to reply to this topic.