Skip to content
  • Error: Cannot find -lSDL2

    Solved 3rd Party Software library sdl2 includepath
    16
    0 Votes
    16 Posts
    2k Views
    A
    @jsulm @Christian-Ehrlicher Well, my code doesn't work after but I'll figure it out later. I can say that the linking works properly now. Thanks for your help guys!
  • SDL events getting delayed

    Unsolved Game Development sdl2
    1
    0 Votes
    1 Posts
    649 Views
    No one has replied
  • QtQuick into an SDL2 window

    Unsolved Game Development qtquick sdl2
    4
    0 Votes
    4 Posts
    4k Views
    I
    According to the QWGLNativeContext documentation and some online examples, I set up this little function to try and initialize a QOpenGLContext from an existing and already initialized SDL2 context: void QtHooks::initQtOpenGlContext(SDL_Window *screen) { assert(screen); QOpenGLContext *context = new QOpenGLContext; SDL_SysWMinfo sysInfo; SDL_VERSION(&sysInfo.version); SDL_GetWindowWMInfo(screen, &sysInfo); HGLRC currentContext = wglGetCurrentContext(); HWND currentWindow = sysInfo.info.win.window; assert(currentContext); assert(currentWindow); QWGLNativeContext nativeContext(currentContext, currentWindow); context->setNativeHandle(QVariant::fromValue(nativeContext)); assert(qtContext->isValid()); // <<-- this line always fails context->create(); // if i remove the previous assert, this line kills the application very badly } This little example always fails in the last two lines. Am I missing something?
  • 0 Votes
    1 Posts
    778 Views
    No one has replied