[shouting] Does anybody have an example of using lock and unlock? [/shouting]

[shouting] Does anybody have an example of using lock and unlock? [/shouting]

This is a discussion on [shouting] Does anybody have an example of using lock and unlock? [/shouting] within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am having problems with this, so I am looking for a little piece of code that uses this, so ...

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.