2017-10-04 11:20:27 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef REAL_BUILD
|
|
|
|
# include "externals.hh"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
struct T_Window
|
|
|
|
{
|
|
|
|
T_Window( );
|
|
|
|
~T_Window( );
|
|
|
|
|
2017-11-03 09:08:19 +01:00
|
|
|
void startFrame( const bool capture ,
|
|
|
|
ImVec2 const& mouseInitial ) const;
|
|
|
|
void warpMouse( ImVec2 const& pos ) const;
|
2017-10-04 11:20:27 +02:00
|
|
|
|
|
|
|
void swap( ) const;
|
|
|
|
|
2017-11-20 21:54:46 +01:00
|
|
|
ImFont* defaultFont( ) const noexcept
|
|
|
|
{ return defaultFont_; }
|
|
|
|
ImFont* smallFont( ) const noexcept
|
|
|
|
{ return smallFont_; }
|
|
|
|
|
2017-10-04 11:20:27 +02:00
|
|
|
private:
|
|
|
|
SDL_Window * window;
|
|
|
|
SDL_GLContext gl;
|
2017-11-20 21:54:46 +01:00
|
|
|
ImFont* defaultFont_;
|
|
|
|
ImFont* smallFont_;
|
2017-10-04 11:20:27 +02:00
|
|
|
};
|
|
|
|
|