comparison examples/opengl/hellogl/glwidget.d @ 207:71101646ab25

more D2 examples fixes
author SokoL_SD
date Tue, 14 Jul 2009 09:25:04 +0000
parents 834feae7809b
children 8aaa84d48451
comparison
equal deleted inserted replaced
206:aeeaae4dd540 207:71101646ab25
33 ** If you are unsure which license is appropriate for your use, please 33 ** If you are unsure which license is appropriate for your use, please
34 ** contact the sales department at qt-sales@nokia.com. 34 ** contact the sales department at qt-sales@nokia.com.
35 ** 35 **
36 ****************************************************************************/ 36 ****************************************************************************/
37 37
38 38 version(Tango)
39 import tango.math.Math; 39 import tango.math.Math;
40 else
41 {
42 import std.math;
43 int rndint(real x)
44 {
45 return cast(int)rndtol(x);
46 }
47 }
40 48
41 import qt.core.QPoint; 49 import qt.core.QPoint;
42 import qt.gui.QMouseEvent; 50 import qt.gui.QMouseEvent;
43 import qt.opengl.QGLWidget; 51 import qt.opengl.QGLWidget;
44 import qt.gui.QColor; 52 import qt.gui.QColor;