mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Change 18603 on 2012/09/11 by fredrik@fredrik_MBP-BootCamp
Added glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); to get proper orientation of textures on point sprites
This commit is contained in:
@@ -414,6 +414,9 @@ void caf::Viewer::paintEvent(QPaintEvent* event)
|
||||
painter.endNativePainting();
|
||||
#endif
|
||||
|
||||
// Call virtual method to allow subclasses to paint on the OpenGlCanvas
|
||||
this->paintOverlayItems(&painter);
|
||||
|
||||
if (m_showPerfInfoHud && isShadersSupported())
|
||||
{
|
||||
cvfqt::PerformanceInfoHud hud;
|
||||
@@ -664,3 +667,12 @@ void caf::Viewer::enableForcedImmediateMode(bool enable)
|
||||
m_mainRendering->renderEngine()->enableForcedImmediateMode(enable);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int caf::Viewer::currentFrameIndex()
|
||||
{
|
||||
if (m_animationControl) return m_animationControl->currentFrame();
|
||||
else return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user