Description: [one line class summary]
Usage: <usage>
Definition at line 32 of file FWTGLViewer.h.
TGLFBO * FWTGLViewer::GenerateFbo |
( |
Int_t |
w, |
|
|
Int_t |
h, |
|
|
Float_t |
pixel_object_scale |
|
) |
| |
Definition at line 140 of file FWTGLViewer.cc.
References h, m_fbo, m_fbo_h, m_fbo_w, and w.
Referenced by MakeFbo(), MakeFboHeight(), MakeFboScale(), and MakeFboWidth().
143 static const TString eh(
"FWTGLViewer::SavePictureUsingFBO");
145 if (!GLEW_EXT_framebuffer_object) {
146 ::Warning(eh,
"Missing FBO support.");
149 if (!TakeLock(kDrawLock)) {
150 ::Error(eh,
"viewer locked - try later.");
154 TUnlocker ulck(
this);
158 if (
m_fbo ==
nullptr) {
159 m_fbo =
new TGLFBO();
163 m_fbo->Init(
w,
h, fGLWidget->GetPixelFormat()->GetSamples());
164 }
catch (std::runtime_error& exc) {
175 TGLRect old_vp(fViewport);
176 SetViewport(0, 0,
w,
h);
178 Float_t old_scale = 1;
179 if (pixel_object_scale != 0) {
180 old_scale = fRnrCtx->GetRenderScale();
181 fRnrCtx->SetRenderScale(old_scale * pixel_object_scale);
186 fLOD = TGLRnrCtx::kLODHigh;
187 fRnrCtx->SetGrabImage(kTRUE);
191 fRnrCtx->SetGrabImage(kFALSE);
195 if (pixel_object_scale != 0) {
196 fRnrCtx->SetRenderScale(old_scale);
edm::ErrorSummaryEntry Error
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.