]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/entity/light.h
Merge branch 'webp' into 'master'
[xonotic/netradiant.git] / plugins / entity / light.h
index 37b714f26b0e566c772ac15b7585e40ff6574eff..ac46a3b5d1d58fd99ecef45a25cf34a84f625620 100644 (file)
@@ -1,26 +1,42 @@
-
 /*
-Copyright (C) 1999-2007 id Software, Inc. and contributors.
-For a list of contributors, see the accompanying CONTRIBUTORS file.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
+
+   This file is part of GtkRadiant.
+
+   GtkRadiant 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 2 of the License, or
+   (at your option) any later version.
+
+   GtkRadiant 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 GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#if !defined( INCLUDED_LIGHT_H )
+#define INCLUDED_LIGHT_H
 
-This file is part of GtkRadiant.
+namespace scene {
+    class Node;
+}
+class EntityClass;
 
-GtkRadiant 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 2 of the License, or
-(at your option) any later version.
+scene::Node &New_Light(EntityClass *eclass);
 
-GtkRadiant 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.
+enum LightType {
+    LIGHTTYPE_DEFAULT,
+    LIGHTTYPE_RTCW,
+    LIGHTTYPE_DOOM3
+};
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+void Light_Construct(LightType lightType);
 
-bool Entity_IsLight(entity_t *e);
-void Light_OnKeyValueChanged(entity_t *e, const char *key, const char* value);
-void DrawLight(entity_t* e, int nGLState, int pref, int nViewType);
+void Light_Destroy();
 
+#endif