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:
54
examples/ThirdPartyLibs/Gwen/Platforms/Null.cpp
Normal file
54
examples/ThirdPartyLibs/Gwen/Platforms/Null.cpp
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
GWEN
|
||||
Copyright (c) 2011 Facepunch Studios
|
||||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
#include "Gwen/Macros.h"
|
||||
#include "Gwen/Platform.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
#include <time.h>
|
||||
|
||||
static Gwen::UnicodeString gs_ClipboardEmulator;
|
||||
|
||||
void Gwen::Platform::SetCursor( unsigned char iCursor )
|
||||
{
|
||||
// No platform independent way to do this
|
||||
}
|
||||
|
||||
Gwen::UnicodeString Gwen::Platform::GetClipboardText()
|
||||
{
|
||||
return gs_ClipboardEmulator;
|
||||
}
|
||||
|
||||
bool Gwen::Platform::SetClipboardText( const Gwen::UnicodeString& str )
|
||||
{
|
||||
gs_ClipboardEmulator = str;
|
||||
return true;
|
||||
}
|
||||
|
||||
float Gwen::Platform::GetTimeInSeconds()
|
||||
{
|
||||
float fSeconds = (float) clock() / (float)CLOCKS_PER_SEC;
|
||||
return fSeconds;
|
||||
}
|
||||
|
||||
bool Gwen::Platform::FileOpen( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback )
|
||||
{
|
||||
// No platform independent way to do this.
|
||||
// Ideally you would open a system dialog here
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Gwen::Platform::FileSave( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Gwen::Event::Handler::FunctionStr fnCallback )
|
||||
{
|
||||
// No platform independent way to do this.
|
||||
// Ideally you would open a system dialog here
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // ndef WIN32
|
||||
Reference in New Issue
Block a user