Newer
Older
cg / include / model.h
@glproj03 glproj03 on 29 Jan 2006 578 bytes Did a lot off stuff :-)
#ifndef _MODEL_H
#define _MODEL_H

#include "vec.h"
#include "poly.h"
#include <string>

class Model {
	private:
		std::vector<Poly*> faces;

		Vec* position;
		Vec* rotation;

		float delta;

	public:
		Model();
		Model(std::vector<Poly*> & _faces);
		~Model();
		void setCenter(Vec& c);
		void setCenter(Vec* c);
		Vec calcCenter();
		void rotate(Vec rot);
		void draw();
		void addFace(Poly* face);
		int numFaces();
		void vardump(std::string whitespace);
		void setDelta(float d);
		float getDelta();
		void showNormals();
		void hideNormals();
		Model* clone();
};
#endif