K3dLight.h

Go to the documentation of this file.
00001 
00013 /***************************************************************************
00014  *   Copyright (C) 2007 by Jan Koci   *
00015  *   honza.koci@email.cz   *
00016  *   http://kengine.sourceforge.net/tutorial/
00017  *                                                                         *
00018  *   This program is free software; you can redistribute it and/or modify  *
00019  *   it under the terms of the GNU General Public License as published by  *
00020  *   the Free Software Foundation; either version 2 of the License, or     *
00021  *   (at your option) any later version.                                   *
00022  *                                                                         *
00023  *   This program is distributed in the hope that it will be useful,       *
00024  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00025  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00026  *   GNU General Public License for more details.                          *
00027  *                                                                         *
00028  *   You should have received a copy of the GNU General Public License     *
00029  *   along with this program; if not, write to the                         *
00030  *   Free Software Foundation, Inc.,                                       *
00031  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00032  ***************************************************************************/
00033 
00034 #pragma once
00035 
00036 #include <iostream>
00037 
00038 using namespace std;
00039 
00040 class K3dLight
00041 {
00042 
00043                 float m_afAmbient[4];
00044                 float m_afDiffuse[4];
00045                 float m_afSpecular[4];
00046                 float m_fShininess;
00047 
00048 
00049                 float m_afEmission[4];
00050                 float m_fLinearAttenuation;
00051                 int m_iSpotExponent;
00052                 int m_iSpotCutoff;
00053 
00054         public:
00055                 K3dLight();
00056                 ~K3dLight();
00057 
00058                 float m_afPosition[4];
00059                 float m_afDirection[3];
00060 
00061                 void InitLight();
00062                 void Reset();
00063                 void Destroy();
00064                 void DrawLight();
00065 
00066 
00067 };
00068 

Generated on Thu Aug 16 23:53:26 2007 for K3dEngine by  doxygen 1.5.0