How do i create a window (win32) with background initially set black?

Using GLFW
erf
2013-01-09
2013-01-09
  • erf

    erf - 2013-01-09

    I would like to create a window (win32) with the background set initially to black. Now it is white until glfwSwapBuffers is called, which causes an annoying flash. Please help=)

     
  • erf

    erf - 2013-01-09

    Solved it by setting:
    wc.hbrBackground = CreateSolidBrush( RGB(0,0,0) );
    in
    win32_window.c -> registerWindowClass

    Would be neat if this could be set through glfwOpenWindowHint.

     
    Last edit: erf 2013-01-09

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks