// Object.h

#ifndef _OBJECT_H_
#define _OBJECT_H_


#include "Types.h"
#include "Math.h"
#include "Misc.h"
#include "TwinVert.h"


class CObject
{
	private:

		CTwinVert
			Base,
			*VertList;
		SFace
			*FaceList;


	public:

		char
			Name[64];
		s32
			NumVerts,
			NumFaces;


		CObject();
		~CObject();

		void SetBase( const s32 frame, const Vector3 *base );
		Vector3 *GetBase( const s32 frame );

		void AllocVerts( const s32 count );
		void SetVert( const s32 frame, const s32 index, const Vector3 *v );
		Vector3 *GetVert( const s32 frame, const s32 index );

		void AllocFaces( const s32 count );
		SFace *GetFace( const s32 index );
};


#endif
