git-svn-id: svn://db.shs.com.ru/libs@626 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-11-22 15:20:52 +00:00
parent 5e2b563d57
commit 09248aae34
128 changed files with 16038 additions and 0 deletions

View File

@@ -113,10 +113,12 @@ QGLView::~QGLView() {
void QGLView::stop() {
if (timer) killTimer(timer);
timer = 0;
}
void QGLView::start(float freq) {
stop();
timer = startTimer(freq <= 0.f ? 0 : int(1000.f / freq));
}
@@ -253,6 +255,7 @@ void QGLView::timerEvent(QTimerEvent *) {
void QGLView::render() {
if (!isVisible()) return;
resizeGL(width(), height());
QRect g_rect(QPoint(), size());
emit glBeforePaint();