Table of Contents

 
FillRect
 

Purpose

Fills a rectangle with a given color

 

Protoype

void CVideo::FillRect (int i_xpos, int i_ypos, int i_width, int i_height, RGB_SET rgb_color)
 

Parameters

xpos the X position of the rectangle
ypos the Y position of the rectangle
width the width of the rectange
height the height of the rectangle
color the RGB values of the rectangle's color
 

Description

This function creates and fast-fills rectangles of any shape and color onto the primay surface.

 

Use

CVideo video;
video.FillRect(50, 50, 100, 100, RGB_SET(255, 255, 0));
 

Prev: FadeScreenOut
Next: Flip