diff options
author | 2018-12-05 19:45:08 +0100 | |
---|---|---|
committer | 2018-12-05 19:45:08 +0100 | |
commit | 0bd02131b644b61088789f52f31b750c9aecaa6d (patch) | |
tree | 811c679a1bba8b24fc7967cdfe73640254d64156 /3rdparty/bgfx/examples/common/entry/entry_p.h | |
parent | 9a81ec7eaf00d73a23db5c003dc45b55d4b76c4a (diff) |
3rdparty: Updated bgfx, bimg, and bx to latest upstream. [Ryan Holtz]
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry_p.h')
-rw-r--r-- | 3rdparty/bgfx/examples/common/entry/entry_p.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry_p.h b/3rdparty/bgfx/examples/common/entry/entry_p.h index fa4792a5cb5..6776610b636 100644 --- a/3rdparty/bgfx/examples/common/entry/entry_p.h +++ b/3rdparty/bgfx/examples/common/entry/entry_p.h @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 Branimir Karadzic. All rights reserved. + * Copyright 2011-2018 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ @@ -9,11 +9,12 @@ #define TINYSTL_ALLOCATOR entry::TinyStlAllocator #include <bx/spscqueue.h> +#include <bx/filepath.h> #include "entry.h" #ifndef ENTRY_CONFIG_USE_NOOP -# define ENTRY_CONFIG_USE_NOOP (BX_PLATFORM_QNX) +# define ENTRY_CONFIG_USE_NOOP 0 #endif // ENTRY_CONFIG_USE_NOOP #ifndef ENTRY_CONFIG_USE_SDL @@ -84,6 +85,7 @@ namespace entry Size, Window, Suspend, + DropFile, }; Event(Enum _type) @@ -170,6 +172,13 @@ namespace entry Suspend::Enum m_state; }; + struct DropFileEvent : public Event + { + ENTRY_IMPLEMENT_EVENT(DropFileEvent, Event::DropFile); + + bx::FilePath m_filePath; + }; + const Event* poll(); const Event* poll(WindowHandle _handle); void release(const Event* _event); @@ -276,6 +285,13 @@ namespace entry m_queue.push(ev); } + void postDropFileEvent(WindowHandle _handle, const bx::FilePath& _filePath) + { + DropFileEvent* ev = BX_NEW(getAllocator(), DropFileEvent)(_handle); + ev->m_filePath = _filePath; + m_queue.push(ev); + } + const Event* poll() { return m_queue.pop(); |