gaGetFrameNum()

Syntax

gaGetFrameNum()

Example

function draw()
    gaBackground(0.0,1.0)

    ofSetColor(255)
    info = string.format("Frames rendered since start: %d",gaGetFrameNum())
    ofDrawBitmapString(info,200,100)
end

Description

This function gives us a direct reference to the number of frames rendered since the actual script started (the moment you press the play button).

Returns

«Int, The number of frames rendered since the script started.