Emmanuel BENOîT
afe7c43351
... with a few leftover bugs and a few missing features. Still, it works nicely.
31 lines
567 B
C++
31 lines
567 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( );
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
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 );
|
|
};
|