Function _IrrBeginScene

au3Irr2

au3Irr2 Function Reference

_IrrBeginScene

Starts to draw a frame, erasing the canvas with the specified color.

#Include <au3Irrlicht2.au3>
_IrrBeginScene($i_Red, $i_Green, $i_Blue)

 

Parameters

$i_Red Red value from 0 to 255 (full intensity)
$i_Green Green value from 0 to 255 (full intensity)
$i_Blue Blue value from 0 to 255 (full intensity)

 

Return Value

Success: True
Failure: False

 

Remarks

None

 

Related

_IrrBeginSceneAdvanced, _IrrDrawScene, _IrrDrawGUI, _IrrEndScene

 

Example


#include "au3Irrlicht2.au3"

_IrrStart( $IRR_EDT_OPENGL, 800, 600, $IRR_BITS_PER_PIXEL_32, _
        $IRR_WINDOWED, $IRR_SHADOWS, $IRR_CAPTURE_EVENTS, $IRR_VERTICAL_SYNC_ON )

local $Camera = _IrrAddCamera(10,10,10, 0,0,0 )
local $testNode = _IrrAddTestSceneNode()
_IrrSetNodeMaterialTexture( $testNode, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $testNode, $IRR_EMF_LIGHTING, $IRR_OFF )

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 0)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()