Function _IrrRemoveBillBoardFromGroup

au3Irr2

au3Irr2 Function Reference

_IrrRemoveBillBoardFromGroup

Removes the specified billboard from the billboard group.

#Include <au3Irrlicht2.au3>
_IrrRemoveBillBoardFromGroup($h_BillboardGroup, $h_BillboardGroupSceneNode)

 

Parameters

$h_BillboardGroup Handle to the Billboard Group as returned by _IrrAddBillBoardGroupToScene
$h_BillboardGroupSceneNode Handle to the billbord scene node address in the billbord group as returned by _IrrAddBillBoardToGroup

 

Return Value

Success: True
Failure: False

 

Remarks

None.

 

Related

_IrrAddBillBoardGroupToScene, _IrrAddBillBoardToGroup

 

Example


#include "au3Irrlicht2.au3"

Global $hBillboardGroup
Global $hBillboardTexture
Global $aBillboard[6]
Global $iBillBoards
Global $hCamera
Global $iTimer = TimerInit()

_IrrStart()

$hBillboardGroup = _IrrAddBillBoardGroupToScene()
For $i = 1 To 5
    $aBillboard[$i] = _IrrAddBillBoardToGroup($hBillboardGroup, 150, 100, -450 + ($i * 150), 0, 400, 0, 255, 255, 255, 255)
Next
$hBillboardTexture = _IrrGetTexture("./media/au3irr2_logo.jpg")
_IrrSetNodeMaterialTexture($hBillboardGroup, $hBillboardTexture, 0)
_IrrSetNodeMaterialFlag($hBillboardGroup, $IRR_EMF_LIGHTING, $IRR_OFF)

$hCamera = _IrrAddFPSCamera($IRR_NO_OBJECT, 100.0, 0.1)
_IrrSetCameraClipDistance($hCamera, 128000)

_IrrHideMouse()

While _IrrRunning() And Sleep(10)
    $iBillBoards = _IrrGetBillBoardGroupCount($hBillboardGroup)
    If TimerDiff($iTimer) > 2000 And $iBillBoards > 0 Then
        _IrrRemoveBillBoardFromGroup($hBillboardGroup, $aBillboard[$iBillBoards])
        $iTimer = TimerInit()
    EndIf
    _IrrBeginScene(0, 0, 255)
    _IrrDrawScene()
    _IrrEndScene()
WEnd