Skip to content

Commit

Permalink
Stub getWaylandSurfaceHandle() for entries where it is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
belegdol committed Jul 31, 2023
1 parent e46309b commit c5d7a8e
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/common/entry/entry_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ namespace entry
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

int32_t MainThreadEntry::threadFunc(bx::Thread* _thread, void* _userData)
{
BX_UNUSED(_thread);
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_html5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ namespace entry
{
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}
}

int main(int _argc, const char* const* _argv)
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ void setMouseLock(WindowHandle _handle, bool _lock)
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

} // namespace entry

using namespace entry;
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_noop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ namespace entry
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

} // namespace entry

int main(int _argc, const char* const* _argv)
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,11 @@ void setMouseLock(WindowHandle _handle, bool _lock)
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

} // namespace entry

@implementation AppDelegate
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,11 @@ namespace entry
return NULL;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

int32_t MainThreadEntry::threadFunc(bx::Thread* /*_thread*/, void* _userData)
{
MainThreadEntry* self = (MainThreadEntry*)_userData;
Expand Down
5 changes: 5 additions & 0 deletions examples/common/entry/entry_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,11 @@ namespace entry
return s_ctx.m_display;
}

void* getWaylandSurfaceHandle()
{
return NULL;
}

} // namespace entry

int main(int _argc, const char* const* _argv)
Expand Down

0 comments on commit c5d7a8e

Please sign in to comment.