#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <exec/types.h>

#include "/Shared/SH_view.h"
#include "TM_structures.h"
#include "TM_render.h"

WORD *TM_RotateTable;
ULONG *TM_PerspectiveTable;
LONG *TM_ArcSineTable;

VOID TM_TransformScene(SCENE *Scene)
{
LONG i;
OBJECT *Objects;

	Objects = Scene->Objects;

	for(i=0; i<Scene->ONumber; i++)
		if(Objects[i].Flags & OF_DISPLAY)
			if(Objects[i].Flags & OF_NEWPOS)
			{
				if(Objects[i].Flags & OF_ENVIRONMENT)
					TM_TransformObjectI(&Objects[i]);
				else
					TM_TransformObjectII(&Objects[i]);

				Objects[i].Flags &= (~OF_NEWPOS);
			}
}
