add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
This commit is contained in:
24
examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileOpen.cpp
Normal file
24
examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileOpen.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
GWEN
|
||||
Copyright (c) 2010 Facepunch Studios
|
||||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
#include "Gwen/Gwen.h"
|
||||
#include "Gwen/Platform.h"
|
||||
#include "Gwen/Controls/Dialogs/FileOpen.h"
|
||||
|
||||
using namespace Gwen;
|
||||
using namespace Gwen::Dialogs;
|
||||
|
||||
void Gwen::Dialogs::FileOpenEx( bool bUseSystem, const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Gwen::Event::Handler::FunctionStr fnCallback )
|
||||
{
|
||||
if ( bUseSystem && Gwen::Platform::FileOpen( Name, StartPath, Extension, pHandler, fnCallback ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// TODO: SHOW GWEN FILE SELECTION DIALOG
|
||||
//
|
||||
}
|
||||
24
examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileSave.cpp
Normal file
24
examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileSave.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
GWEN
|
||||
Copyright (c) 2010 Facepunch Studios
|
||||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
#include "Gwen/Gwen.h"
|
||||
#include "Gwen/Platform.h"
|
||||
#include "Gwen/Controls/Dialogs/FileSave.h"
|
||||
|
||||
using namespace Gwen;
|
||||
using namespace Gwen::Dialogs;
|
||||
|
||||
void Gwen::Dialogs::FileSaveEx( bool bUseSystem, const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Gwen::Event::Handler::FunctionStr fnCallback )
|
||||
{
|
||||
if ( bUseSystem && Gwen::Platform::FileSave( Name, StartPath, Extension, pHandler, fnCallback ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// TODO: SHOW GWEN FILE SELECTION DIALOG
|
||||
//
|
||||
}
|
||||
12
examples/ThirdPartyLibs/Gwen/Controls/Dialog/Query.cpp
Normal file
12
examples/ThirdPartyLibs/Gwen/Controls/Dialog/Query.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
GWEN
|
||||
Copyright (c) 2010 Facepunch Studios
|
||||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
#include "Gwen/Gwen.h"
|
||||
#include "Gwen/Controls/Dialogs/Query.h"
|
||||
|
||||
using namespace Gwen;
|
||||
using namespace Gwen::Controls;
|
||||
|
||||
Reference in New Issue
Block a user