-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\r
-*/\r
-\r
-\r
-// a texturename of the form (0 0 0) will\r
-// create a solid color texture\r
-\r
-void Texture_Init();\r
-void Texture_ShowDirectory (int menunum);\r
-void Texture_ShowDirectory ();\r
-void Texture_ShowAll();\r
-void WINAPI Texture_ShowInuse();\r
-extern char texture_directory[];\r
-\r
-// Timo\r
-// added an optional IPluginTexdef when one is available\r
-// we need a forward declaration, this is crap\r
-class IPluginTexdef;\r
-//++timo clean\r
-void Texture_SetTexture2 (IShader *pShader, texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale = false, IPluginTexdef *pTexdef = NULL, bool bSetSelection = true);\r
-void WINAPI Texture_SetTexture (texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale = false, IPluginTexdef *pTexdef = (IPluginTexdef*)NULL, bool bSetSelection = true);\r
-\r
-void Texture_SetMode(int iMenu); // GL_TEXTURE_NEAREST, etc..\r
-void Texture_ResetPosition();\r
-\r
-// build the list of shader files used by PreloadShaders\r
-void BuildShaderList();\r
-// preload the shaders: build a list of shader names and properties .. don't load their assets\r
-void PreloadShaders();\r
-int WINAPI Texture_LoadSkin(char *pName, int *pnWidth, int *pnHeight);\r
-qtexture_t* Texture_LoadFromPlugIn(void* vp);\r
-void Texture_StartPos (void);\r
-IShader* Texture_NextPos (int *x, int *y);\r
-\r
+/*
+ Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+ For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+ 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_TEXTURES_H )
+#define INCLUDED_TEXTURES_H
+
+#include "generic/callback.h"
+
+void Textures_Realise();
+void Textures_Unrealise();
+void Textures_sharedContextDestroyed();
+
+void Textures_setModeChangedNotify( const Callback& notify );
+
+#endif