Supported Browsers Home   
BitBltPlaneMaskedBuf Previous   
DstTransBltBuf Next   
GA_bufferFuncs Up   

DrawRectBuf

Draws a solid filled rectangle with specific color and mix

Declaration

void GA_bufferFuncs::DrawRectBuf(
    GA_buf *buf,
    N_int32 left,
    N_int32 top,
    N_int32 width,
    N_int32 height,
    GA_color color,
    N_int32 mix)

Prototype In

snap/graphics.h

Parameters

buf

SNAP buffer to draw to

left

Left coordinate of the rectangle to draw

top

Top coordinate of the rectangle to draw

width

Width of the rectangle in pixels

height

Height of the rectangle in scanlines

color

Color to fill the rectangle with

mix

Mix to fill the rectangle with

 

Description

This function is used to draw a rectangle in the specified color and mix to a specific buffer. This function is useful when a buffer needs to be cleared to a solid color, but it is not the currenty active buffer. Using this function avoids the overhead of switching the currently active buffer and then using the regular DrawRect functions.

See Also

BitBltBuf

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