void drawTestScene()
{
    bMap->clear();
    cam.buildRays(*bMap,buffer,lights);
    //cam.buildCentralRay(bMap,&buffer,lights);
    RayLink *t;
    t = buffer.start->next;
    while(buffer.size > 0)
    {
        buffer.size--;
        t->task->execute(sceneTree);
        t = t->next;
        //delete t->task;

        /*
        t = buffer.getFront();
        t->task->execute(sceneTree);
        buffer.deleteFront();
        */
        countRayExecuted++;
    }
    /*
    unsigned char r, g, b;

    for(int i = 0; i < IMAGE_HEIGHT; i++)
    	for(int j = 0; j < IMAGE_WIDTH; j++)
    	{
    		r = ((i/3)%15 <= 2) ? 0 : 255;
    		g = ((j/3)%15 <= 2) ? 0 : 255;
    		b = ((i/3)%15 < (j/3)%15) ? 0 : 255;
    		bMap->setBMapPixel(i, j, r, g, b);
    	}
    */

    printf("drawn\n");
    buffer.clear();
}