void drawQueue(Queue * q) { Node * head; if (q != NULL) { head = q->head; while (head != NULL) { drawStimulus(&(head->circle)); head = head->next; } } }
void drawStimuliToFramebuffers(CX_SlidePresenter& sp, int trialIndex) { CX_Millis startTime = Clock.now(); sp.beginDrawingNextSlide(stimulusPresentationDuration, "stimulus"); string letter = df(trialIndex, "letter").toString(); drawStimulus(letter, (trialIndex >= nBack)); sp.endDrawingCurrentSlide(); sp.beginDrawingNextSlide(interStimulusInterval, "blank"); drawBlank(); sp.endDrawingCurrentSlide(); CX_Millis renderingDuration = Clock.now() - startTime; Log.notice() << "framebuffer rendering duration: " << renderingDuration; }
void operator()(void) { drawStimulus(this->letter, this->showInstructions); }