/* *EERT = EERT enhanced rendering technology * *Copyright (C) [2008] [Robert "BuRnEr" Schadek] *This program is free software; you can redistribute it and/or modify it under *the terms of the GNU General Public License as published by the Free Software *Foundation; either version 3 of the License, *or (at your option) any later version. *This program is distributed in the hope that it will be useful, but WITHOUT *ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS *FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. *You should have received a copy of the GNU General Public License along with *this program; if not, see <http://www.gnu.org/licenses/>. */ package Types.Illumination; import Types.Geometrie.Vector; import java.awt.Color; import javax.media.opengl.GL; public class PointLight implements ELight { public Vector origin; public float radius; public Color color; public PointLight(Vector origin, float radius, Color color) { this.origin = origin; this.radius = radius; this.color = color; } public PointLight(PointLight toCopy) { this.origin = new Vector(toCopy.origin); this.radius = toCopy.radius; this.color = new Color(toCopy.color.getRGB()); } public void draw(GL gl) { throw new UnsupportedOperationException("Not supported yet."); } }