qvolray
view src/ui_xferview.cc @ 29:93d889a3726a
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Apr 2012 20:52:53 +0300 |
parents | |
children | 40df2cdc6323 |
line source
1 #include "ui_xferview.h"
2 #include "volray.h"
4 XFerView::XFerView(QGLWidget *share_widget)
5 : QGLWidget(QGLFormat(QGL::DoubleBuffer), 0, share_widget)
6 {
7 }
9 QSize XFerView::minimumSizeHint() const
10 {
11 return QSize(160, 100);
12 }
14 void XFerView::initializeGL()
15 {
16 }
18 void XFerView::resizeGL(int xsz, int ysz)
19 {
20 glViewport(0, 0, xsz, ysz);
21 }
23 void XFerView::paintGL()
24 {
25 volray_draw_xfer();
26 }