get image function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user