Emmanuel BENOîT
2c97f3a52e
* Use menus instead of a silly window with checkboxes * Windows can be closed, cannot be collapsed * Left side windows have more vertical space * Specific window for the sequencer
43 lines
797 B
C++
43 lines
797 B
C++
#pragma once
|
|
|
|
#include "opcomp.hh"
|
|
|
|
namespace ops { class T_OpContext; }
|
|
|
|
|
|
struct T_Demo
|
|
{
|
|
T_Demo( ) = default;
|
|
|
|
NO_COPY( T_Demo );
|
|
NO_MOVE( T_Demo );
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
bool initialise( const uint32_t width ,
|
|
const uint32_t height );
|
|
void render( );
|
|
|
|
void handleDND(
|
|
ImVec2 const& move ,
|
|
const bool hasCtrl ,
|
|
const bool hasShift ,
|
|
const bool lmb // Left mouse button
|
|
);
|
|
void handleWheel(
|
|
const float wheel ,
|
|
const bool hasCtrl ,
|
|
const bool hasShift
|
|
);
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
private:
|
|
uint32_t width;
|
|
uint32_t height;
|
|
|
|
T_OwnPtr< ops::T_OpProgram > program;
|
|
T_OwnPtr< ops::T_OpContext > context;
|
|
|
|
bool runInit( ops::T_OpProgram& program );
|
|
};
|