Supported Browsers Home   
SetDrawBuffer Previous   
PM Library Reference Next   
REF2D_driver Up   

SetDrawSurface

Sets the software rasteriser active drawing buffer.

Declaration

void NAPI REF2D_driver::SetDrawSurface(
    void *surface,
    N_int32 xRes,
    N_int32 yRes,
    N_int32 bytesPerLine,
    N_int32 bitsPerPixel,
    GA_pixelFormat *pf)

Prototype In

snap/ref2d.h

Parameters

surface

Pointer to the start of the memory buffer for drawing

xRes

X resolution for the surface

yRes

Y resolution for the surface

bytesPerLine

Scanline width for the memory buffer for drawing

bitsPerPixel

New color depth for the surface

pf

New pixel format for the surface

 

Description

This function changes the software draw buffer quickly, to allow the software renderer to render to bitmaps in different locations in memory. This function is tuned for speed, so that we can avoid the overhead of setting the full draw buffer for the reference rasteriser code.

This function is also used by the buffer manager code to quickly change the draw buffer surface.

See Also

SetDrawBuffer

 

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com