Пример #1
0
void drawQueue(Queue * q) {
    Node * head;
    if (q != NULL) {
        head = q->head;
        while (head != NULL) {
            drawStimulus(&(head->circle));
            head = head->next;
        }
    }
}
Пример #2
0
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;
}
Пример #3
0
	void operator()(void) {
		drawStimulus(this->letter, this->showInstructions);
	}