qvolray

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