version 1.1.0
add Renderer::GrabFormat flags
This commit is contained in:
@@ -92,6 +92,10 @@ public:
|
||||
|
||||
dbrBuffersCount,
|
||||
};
|
||||
enum GrabFormat {
|
||||
gfImage = 1,
|
||||
gfFloat = 2
|
||||
};
|
||||
|
||||
void init(int width, int height);
|
||||
void resize(int width, int height);
|
||||
@@ -99,9 +103,8 @@ 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; }
|
||||
QVector<QVector4D> getImageF() const { return last_img_f; }
|
||||
void addFramebufferEffect(FramebufferEffectBase * e);
|
||||
void clearFramebufferEffects() { fb_effects.clear(); }
|
||||
QVector<FramebufferEffectBase *> framebufferEffects() const { return fb_effects; }
|
||||
@@ -156,8 +159,8 @@ private:
|
||||
QMap<int, QList<Light *>> cur_lights;
|
||||
QVector<FramebufferEffectBase *> fb_effects;
|
||||
QImage last_img;
|
||||
QVector<QVector4D> last_img_f;
|
||||
QString obr_defines, timings;
|
||||
bool is_grabbing = false;
|
||||
};
|
||||
|
||||
#endif // RENDERER_H
|
||||
|
||||
Reference in New Issue
Block a user