Exemple #1
0
static void
endCamera(moveContext *context)
{
   cameraStop (0);

   cameraClose (0);
   cameraEnd ();

   sysMemContainerDestroy (context->camInfo.container);
}
void SceneWhiteNote::draw()
{
    ofBackground(255, 255, 255);
    ofSetLineWidth(1);

    
    // draw waves
    ofSetColor(0);
    ofNoFill();
    for (int i = 0; i < NUM_SAMPLES; i++)
    {
        mSamplePointsDrawer->drawWave(mSamples[i], ofRectangle(0, 0, ofGetWidth(), ofGetHeight()));
    }
    
    cameraBegin(); //------------------------ camera begin
    
    //grid lines
    drawGridLines();
    
    // draw points
    ofFill();
    ofSetColor(0);
//    mSamplePointsDrawer->drawCircle(mPts[0], 0.3);
    mSamplePointsDrawer->drawPoints(mPts[0], ofColor(0), 2);

    
//    ofSetColor(255, 0, 0);
//    mSamplePointsDrawer->drawCircle(mPts[1], 0.3);
    
//    mSamplePointsDrawer->drawCircle(mPts[2], 0.3);
    
//    mSamplePointsDrawer->setTo2dMode(BaseScopeManager::TO2D_XZ);
//    mSamplePointsDrawer->set2dDistance(-75);
    
    cameraEnd(); //--------------------------- camera end
    
    //ruler lines
    drawRulerLines();
}