1 /* 2 This file is a part of the RepSnapper project. 3 Copyright (C) 2010 Evan Clinton (Palomides) 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License along 16 with this program; if not, write to the Free Software Foundation, Inc., 17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 #ifndef GL_LIGHT_H 20 #define GL_LIGHT_H 21 22 class gllight 23 { 24 public: 25 gllight(); 26 ~gllight(); 27 28 void Init (int position); 29 void Enable(bool on); 30 31 void SetAmbient(float r, float g, float b, float a); 32 void SetDiffuse(float r, float g, float b, float a); 33 void SetLocation(float x, float y, float z, float w); 34 void SetSpecular(float r, float g, float b, float a); 35 36 private: 37 int offset; 38 }; 39 40 #endif // GL_LIGHT_H 41