But i need some more specific about the files of source, i don’t idea about how implement this.
Main.cpp
#include "U3DWidget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
U3DWidget w;
w.show();
return a.exec();
}
U3DWidget.h
#ifndef U3DWIDGET_H
#define U3DWIDGET_H
#include <QtOpenGL>
#include <QGLWidget>
#include "Engine/Core/CoreEvents.h"
#include "Engine/Engine/Engine.h"
#include "Engine/UI/Font.h"
#include "Engine/Input/Input.h"
#include "Engine/Core/ProcessUtils.h"
#include "Engine/UI/Text.h"
#include "Engine/UI/UI.h"
#include "Engine/Container/DebugNew.h"
#include "Samples/Sample.h"
class U3DWidget : public QGLWidget {
Q_OBJECT
public:
U3DWidget();
~U3DWidget();
protected:
void initializeGL();
void paintGL();
void resizeGL(int width, int height);
private:
};
#endif
U3DWidget.cpp
#include "U3DWidget.h"
#include <stdexcept>
U3DWidget::U3DWidget() : QGLWidget() { }
U3DWidget::~U3DWidget() {
}
void U3DWidget::initializeGL() {
}
void GLWidget::paintGL() {
}
void GLWidget::resizeGL(int width, int height) {
}
Now i no idea about how continue…