get image function

This commit is contained in:
Бычков Андрей
2022-10-18 18:07:32 +03:00
parent 1afa4ea368
commit 0f993e6c1c
4 changed files with 23 additions and 4 deletions

View File

@@ -84,6 +84,9 @@ public:
void renderScene();
void setCameraLightMode(int m);
int cameraLightMode() const {return camera_light_mode;}
void setGrabImage(bool on);
bool isGrabImage() const {return is_grabbing;}
QImage getImage() const {return last_img;}
QImage materialThumbnail(Material * m) {return rend_mat.materialThumbnail(m);}
void recreateMaterialThumbnails(bool force_all = false) {rend_mat.recreateMaterialThumbnails(force_all);}
@@ -125,6 +128,8 @@ private:
QVector4D corner_dirs[4];
QVector<QVector3D> hcontent;
QMap<int, QList<Light*>> cur_lights;
QImage last_img;
bool is_grabbing = false;
};
#endif // RENDERER_H