mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
34 lines
547 B
C++
34 lines
547 B
C++
#include "sceneviewer.h"
|
|
|
|
#include <vector>
|
|
#include <qsurface.h>
|
|
#include <qsurfaceformat.h>
|
|
|
|
using std::vector;
|
|
|
|
SceneViewer::SceneViewer(QWidget* parent)
|
|
: QOpenGLWidget(parent)
|
|
{
|
|
|
|
}
|
|
|
|
SceneViewer::~SceneViewer() {
|
|
|
|
}
|
|
|
|
void SceneViewer::initializeGL() {
|
|
initializeOpenGLFunctions();
|
|
|
|
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
}
|
|
|
|
void SceneViewer::resizeGL(int w, int h) {
|
|
|
|
}
|
|
|
|
void SceneViewer::paintGL() {
|
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
|
|
//
|
|
} |