Browse Source

Fix build, add puglBackendEnter

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
febdf28e05
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 13 additions and 1 deletions
  1. +1
    -1
      dgl/src/WindowPrivateData.cpp
  2. +8
    -0
      dgl/src/pugl.cpp
  3. +4
    -0
      dgl/src/pugl.hpp

+ 1
- 1
dgl/src/WindowPrivateData.cpp View File

@@ -156,7 +156,7 @@ void Window::PrivateData::init(const uint width, const uint height, const bool r


// FIXME this is bad // FIXME this is bad
puglRealize(view); puglRealize(view);
puglX11GlEnter(view, NULL);
puglBackendEnter(view);
} }


// ----------------------------------------------------------------------- // -----------------------------------------------------------------------


+ 8
- 0
dgl/src/pugl.cpp View File

@@ -93,6 +93,14 @@ const char* puglGetWindowTitle(const PuglView* view)
return view->title; return view->title;
} }


// --------------------------------------------------------------------------------------------------------------------
// expose backend enter

void puglBackendEnter(PuglView* view)
{
view->backend->enter(view, NULL);
}

// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
// set window size without changing frame x/y position // set window size without changing frame x/y position




+ 4
- 0
dgl/src/pugl.hpp View File

@@ -37,6 +37,10 @@ PUGL_BEGIN_DECLS
PUGL_API const char* PUGL_API const char*
puglGetWindowTitle(const PuglView* view); puglGetWindowTitle(const PuglView* view);


// expose backend enter
PUGL_API void
puglBackendEnter(PuglView* view);

// set window size without changing frame x/y position // set window size without changing frame x/y position
PUGL_API PuglStatus PUGL_API PuglStatus
puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height); puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height);


Loading…
Cancel
Save