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

This commit is contained in:
2019-12-04 10:40:14 +00:00
parent f8634df8c7
commit 81c7de74f9
11 changed files with 862 additions and 1331 deletions

View File

@@ -122,6 +122,26 @@ void QGLView::start(float freq) {
}
QList<Light * > QGLView::selectedLights() const {
QList<Light * > ret;
QList<ObjectBase*> sol = scene_->selectedObjects();
foreach (ObjectBase * o, sol)
if (o->type() == ObjectBase::glLight)
ret << (Light*)o;
return ret;
}
QList<Camera * > QGLView::selectedCameras() const {
QList<Camera * > ret;
QList<ObjectBase*> sol = scene_->selectedObjects();
foreach (ObjectBase * o, sol)
if (o->type() == ObjectBase::glCamera)
ret << (Camera*)o;
return ret;
}
void QGLView::resizeEvent(QResizeEvent * e) {
renderLater();