qvolray
annotate 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 |
rev | line source |
---|---|
nuclear@27 | 1 #include "ui_sliceview.h" |
nuclear@27 | 2 |
nuclear@27 | 3 SliceGLView::SliceGLView(QGLWidget *share_widget) |
nuclear@27 | 4 : QGLWidget(QGLFormat(QGL::DoubleBuffer), 0, share_widget) |
nuclear@27 | 5 { |
nuclear@27 | 6 } |
nuclear@27 | 7 |
nuclear@27 | 8 QSize SliceGLView::minimumSizeHint() const |
nuclear@27 | 9 { |
nuclear@27 | 10 return QSize(160, 160); |
nuclear@27 | 11 } |
nuclear@27 | 12 |
nuclear@27 | 13 void SliceGLView::initializeGL() |
nuclear@27 | 14 { |
nuclear@27 | 15 } |
nuclear@27 | 16 |
nuclear@27 | 17 void SliceGLView::resizeGL(int xsz, int ysz) |
nuclear@27 | 18 { |
nuclear@27 | 19 glViewport(0, 0, xsz, ysz); |
nuclear@27 | 20 } |
nuclear@27 | 21 |
nuclear@27 | 22 void SliceGLView::paintGL() |
nuclear@27 | 23 { |
nuclear@27 | 24 glClear(GL_COLOR_BUFFER_BIT); |
nuclear@27 | 25 } |