I am having problems with this, so I am looking for a little piece of code that uses this, so I can try and make some sense of it, please contribute if you could.
I am having problems with this, so I am looking for a little piece of code that uses this, so I can try and make some sense of it, please contribute if you could.
There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!
"...The only real game I thank in the world is baseball..." --Babe Ruth
"Life is beautiful"-Don Corleone right before he died.
"The expert on anything was once a beginner" -Baseball poster I own.
Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.
You would use lock and unlock to manipulate the surface by individual pixel changes. The only examples I've ever seen for it (I don't use lock/unlock, don't have a need for it) were to do a pixel-perfect collision detection test or to do some special effects (like fire) by changing pixels.
What do you want to lock and unlock?
just anything, I want to see a code of it at work, because the book doesn't explain it real good. I want to see it at work.Originally posted by Shiro
What do you want to lock and unlock?
There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!
"...The only real game I thank in the world is baseball..." --Babe Ruth
"Life is beautiful"-Don Corleone right before he died.
"The expert on anything was once a beginner" -Baseball poster I own.
Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.
He's talking about locking/unlocking DirectDraw surfaces.Originally posted by Shiro
What do you want to lock and unlock?
El, check out this for a code example.