Hi all,
I wanted to set the background color of the window in C++, and I’ve looked at how ShowBase does it. Well, it called the function DrawableRegion::set_clear_color on the GraphicsWindow.
So, I tried this code:
win_ptr->get_graphics_window()->set_clear_color(Colorf(0,0,0,1));
But the color remains gray. Any idea what I could be doing wrong? I also tried set_clear_color_active but that didnt help either.