Previous: 4.51.2.4.32. ogGetPixFmt() To the Table of Contents Next: 4.51.2.4.34. ogGetTransparentColor()
4.51.2.4.32. ogGetPixFmt() Table of Contents 4.51.2.4.34. ogGetTransparentColor()

- 4.51.2.4.33. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.33. ogGetPtr()


4.51.2.4.33. ogGetPtr()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Retrieves a direct memory pointer to a portion of the surface.

Declaration:
  procedure ogGetPtr(x, y:uInt32):pointer; virtual; 
Remarks:

Returns a pointer to the first byte of the position at (x,y).

Return value:

Returns a valid memory pointer or NIL if not supported.

Restrictions:

The memory pointer is only valid to the end of the scanline, since contiguous memory is not guaranteed beyond a single scanline in the surface.




Previous: 4.51.2.4.32. ogGetPixFmt() To the Table of Contents Next: 4.51.2.4.34. ogGetTransparentColor()
4.51.2.4.32. ogGetPixFmt() Table of Contents 4.51.2.4.34. ogGetTransparentColor()

- 4.51.2.4.33. -