Emmanuel BENOîT
3fd377699f
Display areas for the header and the sequencer itself; writes lewd text in the header with the appropriate font; computes some of the data for proper zooming, and prints it to stdout because fuck you, that's why.
29 lines
490 B
C++
29 lines
490 B
C++
#pragma once
|
|
#ifndef REAL_BUILD
|
|
# include "externals.hh"
|
|
#endif
|
|
|
|
|
|
struct T_Window
|
|
{
|
|
T_Window( );
|
|
~T_Window( );
|
|
|
|
void startFrame( const bool capture ,
|
|
ImVec2 const& mouseInitial ) const;
|
|
void warpMouse( ImVec2 const& pos ) const;
|
|
|
|
void swap( ) const;
|
|
|
|
ImFont* defaultFont( ) const noexcept
|
|
{ return defaultFont_; }
|
|
ImFont* smallFont( ) const noexcept
|
|
{ return smallFont_; }
|
|
|
|
private:
|
|
SDL_Window * window;
|
|
SDL_GLContext gl;
|
|
ImFont* defaultFont_;
|
|
ImFont* smallFont_;
|
|
};
|
|
|