Skip to content

Conversation

@paveltrpn
Copy link

@paveltrpn paveltrpn commented Jan 31, 2026

Add clear color field to WindowTraits and use it as window clear color.

Description

I recently start using VulkanSceneGraph and did not find any way to change clear color of the window.
This PR add corresponding field to WindowTraits and force to use it as window background clear color.
Default value of clear color stays same as before.

Additionally i add .qtcreator folder (QtCreator setting folder starts from 19.0) to .gitignore file.

@robertosfield
Copy link
Collaborator

FYI, to set the clear colour of a window you simply set via the window->clearColor() method i.e.

windowColor->set(r,g,b,a);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants