public Cell(Cell Cell_) { this.position = Cell_.position; this.type = Cell_.type; this.temperature = Cell_.temperature; this.color = Cell_.color; }
public void Draw(int uintSize) { if (type == CellType.Block) { color = NormColor.NormalizeColor(Color.Black); } else if (type == CellType.Window) { color = NormColor.NormalizeColor(Color.Yellow); } else { color = NormColor.NormalizeColor(Color_Mapper.ValueToColor(temperature)); } Gl.glColor3d(color.R, color.G, color.B); Gl.glBegin(Gl.GL_POLYGON); Gl.glVertex2f(position.X, position.Y); Gl.glVertex2f(position.X, position.Y + uintSize); Gl.glVertex2f(position.X + uintSize, position.Y + uintSize); Gl.glVertex2f(position.X + uintSize, position.Y); Gl.glEnd(); }