qvolray

view src/ui_sliceview.cc @ 27:011ac823600c

broken up the OpenGL code to multiple source files (untested)
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 06:37:31 +0300
parents
children aeef3c2ae472
line source
1 #include "ui_sliceview.h"
3 SliceGLView::SliceGLView(QGLWidget *share_widget)
4 : QGLWidget(QGLFormat(QGL::DoubleBuffer), 0, share_widget)
5 {
6 }
8 QSize SliceGLView::minimumSizeHint() const
9 {
10 return QSize(160, 160);
11 }
13 void SliceGLView::initializeGL()
14 {
15 }
17 void SliceGLView::resizeGL(int xsz, int ysz)
18 {
19 glViewport(0, 0, xsz, ysz);
20 }
22 void SliceGLView::paintGL()
23 {
24 glClear(GL_COLOR_BUFFER_BIT);
25 }