2017-01-02 21:07:43 -05:00
|
|
|
// Copyright (c) Charles J. Cliffe
|
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
2015-06-20 20:19:52 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "PrimaryGLContext.h"
|
|
|
|
#include "GLPanel.h"
|
2016-07-06 23:16:25 -04:00
|
|
|
#include "MeterPanel.h"
|
2015-06-20 20:19:52 -04:00
|
|
|
|
|
|
|
class UITestCanvas;
|
|
|
|
|
|
|
|
class UITestContext: public PrimaryGLContext {
|
|
|
|
public:
|
2018-03-10 02:34:39 -05:00
|
|
|
UITestContext(UITestCanvas *canvas, wxGLContext *sharedContext, wxGLContextAttrs *ctxAttrs);
|
2015-06-20 20:19:52 -04:00
|
|
|
|
|
|
|
void DrawBegin();
|
|
|
|
void Draw();
|
|
|
|
void DrawEnd();
|
|
|
|
|
|
|
|
private:
|
|
|
|
GLPanel testPanel;
|
|
|
|
GLTestPanel testChildPanel;
|
|
|
|
GLPanel testChildPanel2;
|
2015-07-05 18:54:46 -04:00
|
|
|
GLPanel testChildPanel3;
|
2015-07-01 00:34:32 -04:00
|
|
|
GLTextPanel testText1;
|
2016-07-06 23:16:25 -04:00
|
|
|
MeterPanel testMeter;
|
2015-06-20 20:19:52 -04:00
|
|
|
};
|