bgfx/examples/common/entry/entry_qnx.cpp

80 lines
1.4 KiB
C++
Raw Normal View History

2013-04-13 04:54:17 -04:00
/*
2016-01-01 03:11:04 -05:00
* Copyright 2011-2016 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
2013-04-13 04:54:17 -04:00
*/
2014-08-22 01:29:08 -04:00
#include "entry_p.h"
2013-04-13 04:54:17 -04:00
2013-08-15 00:08:46 -04:00
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_QNX
2013-04-13 04:54:17 -04:00
#include <stdio.h>
namespace entry
{
const Event* poll()
{
return NULL;
}
2014-09-22 22:34:10 -04:00
const Event* poll(WindowHandle _handle)
{
BX_UNUSED(_handle);
return NULL;
}
2013-04-13 04:54:17 -04:00
void release(const Event* _event)
{
2014-09-22 22:34:10 -04:00
BX_UNUSED(_event);
}
WindowHandle createWindow(int32_t _x, int32_t _y, uint32_t _width, uint32_t _height, uint32_t _flags, const char* _title)
{
BX_UNUSED(_x, _y, _width, _height, _flags, _title);
WindowHandle handle = { UINT16_MAX };
return handle;
}
void destroyWindow(WindowHandle _handle)
{
BX_UNUSED(_handle);
}
void setWindowPos(WindowHandle _handle, int32_t _x, int32_t _y)
{
BX_UNUSED(_handle, _x, _y);
2013-04-13 04:54:17 -04:00
}
2014-09-22 22:34:10 -04:00
void setWindowSize(WindowHandle _handle, uint32_t _width, uint32_t _height)
2013-04-13 04:54:17 -04:00
{
2014-09-22 22:34:10 -04:00
BX_UNUSED(_handle, _width, _height);
2013-04-13 04:54:17 -04:00
}
2014-09-22 22:34:10 -04:00
void setWindowTitle(WindowHandle _handle, const char* _title)
2014-08-05 15:57:52 -04:00
{
2014-09-22 22:34:10 -04:00
BX_UNUSED(_handle, _title);
2014-08-05 15:57:52 -04:00
}
2014-09-22 22:34:10 -04:00
void toggleWindowFrame(WindowHandle _handle)
2013-04-13 04:54:17 -04:00
{
2014-09-22 22:34:10 -04:00
BX_UNUSED(_handle);
2013-04-13 04:54:17 -04:00
}
void toggleFullscreen(WindowHandle _handle)
{
BX_UNUSED(_handle);
}
2014-09-22 22:34:10 -04:00
void setMouseLock(WindowHandle _handle, bool _lock)
2013-04-13 04:54:17 -04:00
{
2014-09-22 22:34:10 -04:00
BX_UNUSED(_handle, _lock);
2013-04-13 04:54:17 -04:00
}
} // namespace entry
int main(int _argc, char** _argv)
{
entry::main(_argc, _argv);
2013-04-13 04:54:17 -04:00
}
2013-08-15 00:08:46 -04:00
#endif // ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_QNX