IrrBeginScene

section index

## NAME

IrrBeginScene - Start Rendering

## SYNOPSIS

IrrBeginScene(backBuffer.l, zBuffer.l, red.l, green.l, blue.l);

## INPUTS

backbuffer.l | - | Specifies if the back buffer should be cleared, which means that the screen is filled with a color specified with the parameter color. If this parameter is false, the back buffer will not be cleared and the color parameter is ignored.
zBuffer.l | - | Specifies if the depth or z buffer should be cleared. It is not nesesarry to do so, if only 2d drawing is used.
Red.l | - | RedValue for clearing Background
Green.l | - | GreenValue for clearing Background
Blue.l | - | BlueValue for clearing Background

## FUNCTION

Applications must call this method before performing any rendering.

## RESULT

nothing

## EXAMPLE

             If IrrStart( #IRR_EDT_OPENGL, screen_width, screen_height, #True, #True, #False ) = #True
               While( IrrRunning())
                 IrrBeginScene(#True,#True,0,0,0)
                   .... Do something
                 IrrEndScene()
               Wend
               IrrStop()
             EndIf

## NOTES