qvolray
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/ui_xferview.cc Sat Apr 14 20:52:53 2012 +0300 1.3 @@ -0,0 +1,26 @@ 1.4 +#include "ui_xferview.h" 1.5 +#include "volray.h" 1.6 + 1.7 +XFerView::XFerView(QGLWidget *share_widget) 1.8 + : QGLWidget(QGLFormat(QGL::DoubleBuffer), 0, share_widget) 1.9 +{ 1.10 +} 1.11 + 1.12 +QSize XFerView::minimumSizeHint() const 1.13 +{ 1.14 + return QSize(160, 100); 1.15 +} 1.16 + 1.17 +void XFerView::initializeGL() 1.18 +{ 1.19 +} 1.20 + 1.21 +void XFerView::resizeGL(int xsz, int ysz) 1.22 +{ 1.23 + glViewport(0, 0, xsz, ysz); 1.24 +} 1.25 + 1.26 +void XFerView::paintGL() 1.27 +{ 1.28 + volray_draw_xfer(); 1.29 +}