Differences between current version and predecessor to the previous major change of SDL_LockSurface(3).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:46 pm | by perry | |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:46 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_LockSurface
-!!!SDL_LockSurface
+SDL_!
LockSurface
+!!!SDL_!
LockSurface
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
@@ -8,27 +8,27 @@
----
!!NAME
-SDL_LockSurface- Lock a surface for directly access.
+SDL_!
LockSurface- Lock a surface for directly access.
!!SYNOPSIS
__#include __
-__int SDL_LockSurface__(__SDL_Surface
+__int SDL_!
LockSurface__(__SDL_Surface
*surface__);
!!DESCRIPTION
-__SDL_LockSurface__ sets up a surface for directly
+__SDL_!
LockSurface__ sets up a surface for directly
accessing the pixels. Between calls to
-__SDL_LockSurface__ and __SDL_UnlockSurface__, you can
+__SDL_!
LockSurface__ and __SDL_!
UnlockSurface__, you can
write to and read from __surface-__, using the
pixel format stored in __surface-__. Once you
are done accessing the surface, you should use
-__SDL_UnlockSurface__ to release it.
+__SDL_!
UnlockSurface__ to release it.
Not all surfaces require locking. If
__SDL_MUSTLOCK__(__surface__) evaluates to __0__,
@@ -48,26 +48,26 @@
.
.
-SDL_LockSurface( surface );
+SDL_!
LockSurface( surface );
.
/* Surface is locked */
/* Direct pixel access on surface here */
.
-SDL_LockSurface( surface );
+SDL_!
LockSurface( surface );
.
/* More direct pixel access on surface */
.
-SDL_UnlockSurface( surface );
+SDL_!
UnlockSurface( surface );
/* Surface is still locked */
/* Note: Is versions
!!RETURN VALUE
-__SDL_LockSurface__ returns ____, or __-1__ if the
+__SDL_!
LockSurface__ returns ____, or __-1__ if the
surface couldn't be locked.
!!SEE ALSO
-__SDL_UnlockSurface__
+__SDL_!
UnlockSurface__
----