| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( INCLUDED_TEXWINDOW_H ) |
| 23 |
#define INCLUDED_TEXWINDOW_H |
| 24 |
|
| 25 |
#include <uilib/uilib.h> |
| 26 |
#include "property.h" |
| 27 |
#include "math/vector.h" |
| 28 |
#include "generic/callback.h" |
| 29 |
#include "signal/signalfwd.h" |
| 30 |
#include "xml/xmltextags.h" |
| 31 |
|
| 32 |
class TextureBrowser; |
| 33 |
TextureBrowser& GlobalTextureBrowser(); |
| 34 |
|
| 35 |
ui::Widget TextureBrowser_constructWindow( ui::Window toplevel ); |
| 36 |
void TextureBrowser_destroyWindow(); |
| 37 |
|
| 38 |
|
| 39 |
void TextureBrowser_ShowDirectory( TextureBrowser& textureBrowser, const char* name ); |
| 40 |
void TextureBrowser_ShowStartupShaders( TextureBrowser& textureBrowser ); |
| 41 |
|
| 42 |
const char* TextureBrowser_GetSelectedShader( TextureBrowser& textureBrower ); |
| 43 |
|
| 44 |
void TextureBrowser_Construct(); |
| 45 |
void TextureBrowser_Destroy(); |
| 46 |
|
| 47 |
extern ui::Widget g_page_textures; |
| 48 |
void TextureBrowser_exportTitle( const Callback<void(const char *)> & importer ); |
| 49 |
typedef FreeCaller<void(const Callback<void(const char *)> &), TextureBrowser_exportTitle> TextureBrowserExportTitleCaller; |
| 50 |
|
| 51 |
const Vector3& TextureBrowser_getBackgroundColour( TextureBrowser& textureBrowser ); |
| 52 |
void TextureBrowser_setBackgroundColour( TextureBrowser& textureBrowser, const Vector3& colour ); |
| 53 |
|
| 54 |
void TextureBrowser_addActiveShadersChangedCallback( const SignalHandler& handler ); |
| 55 |
void TextureBrowser_addShadersRealiseCallback( const SignalHandler& handler ); |
| 56 |
|
| 57 |
void TextureBrowser_RefreshShaders(); |
| 58 |
|
| 59 |
#ifdef WORKAROUND_WINDOWS_GTK2_GLWIDGET |
| 60 |
ui::GLArea TextureBrowser_getGLWidget(); |
| 61 |
#endif |
| 62 |
|
| 63 |
#ifdef WORKAROUND_MACOS_GTK2_GLWIDGET |
| 64 |
void TextureBrowser_showGLWidget(); |
| 65 |
void TextureBrowser_hideGLWidget(); |
| 66 |
#endif |
| 67 |
|
| 68 |
#endif |