mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add attention request function to windowing backend.
This commit is contained in:
parent
de3190657e
commit
4a1e93841d
@ -16,6 +16,7 @@ public:
|
||||
|
||||
void Show();
|
||||
void Run();
|
||||
void Attention();
|
||||
|
||||
void NewFrame( int& w, int& h );
|
||||
void EndFrame();
|
||||
|
||||
@ -151,6 +151,11 @@ void Backend::Run()
|
||||
#endif
|
||||
}
|
||||
|
||||
void Backend::Attention()
|
||||
{
|
||||
glfwRequestWindowAttention( s_window );
|
||||
}
|
||||
|
||||
void Backend::NewFrame( int& w, int& h )
|
||||
{
|
||||
glfwGetFramebufferSize( s_window, &w, &h );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user