mirror of
https://github.com/wolfpld/tracy.git
synced 2024-09-21 06:12:17 +00:00
7dbfed9aea
The new NFD library is not using this information, and the old one was using it only on Windows. Oh well. Removal of this functionality also removes some build-time decisions.
34 lines
548 B
C++
34 lines
548 B
C++
#ifndef __BACKEND_HPP__
|
|
#define __BACKEND_HPP__
|
|
|
|
#include <functional>
|
|
#include <stdint.h>
|
|
|
|
#include "WindowPosition.hpp"
|
|
|
|
class RunQueue;
|
|
|
|
class Backend
|
|
{
|
|
public:
|
|
Backend( const char* title, std::function<void()> redraw, RunQueue* mainThreadTasks );
|
|
~Backend();
|
|
|
|
void Show();
|
|
void Run();
|
|
|
|
void NewFrame( int& w, int& h );
|
|
void EndFrame();
|
|
|
|
void SetIcon( uint8_t* data, int w, int h );
|
|
void SetTitle( const char* title );
|
|
|
|
float GetDpiScale();
|
|
|
|
private:
|
|
WindowPosition m_winPos;
|
|
int m_w, m_h;
|
|
};
|
|
|
|
#endif
|