// ObjectInScene.h: interface for the CObjectInScene class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_OBJECTINSCENE_H__CCDA6A5B_A961_11D4_A410_00D0B757055E__INCLUDED_) #define AFX_OBJECTINSCENE_H__CCDA6A5B_A961_11D4_A410_00D0B757055E__INCLUDED_ #include #include "Project4.h" #include #include #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CObjectInScene { public: // Translate matrix GLfloat TMatrix[16]; // Rotation matrix GLfloat RMatrix[16]; // Scale matrix GLfloat SMatrix[16]; char* Name; protected: int Type; // kind of object, i.e. cube, terahendra bool Selected; bool Visible; static GLfloat HighlightColor[3]; GLfloat NormalColor[3]; public: virtual void renderSolid(); virtual void writeProperty(FILE *fp); virtual void readProperty(FILE *fp); void changeVisible(); bool isVisible(); void setVisible(bool b); bool isSelected(); void setSelected(bool Sel); virtual void render(); void initMatrix(void); CObjectInScene(); virtual ~CObjectInScene(); }; #endif // !defined(AFX_OBJECTINSCENE_H__CCDA6A5B_A961_11D4_A410_00D0B757055E__INCLUDED_)