comparison Framework/Scene2D/Internals/OpenGLFloatTextureRenderer.cpp @ 1179:177e7d431cd1 broker

log scale in textures, remove redundant code for LUTs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Nov 2019 15:24:20 +0100
parents 1091b2adeb5a
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1178:3c7cdbf32e2a 1179:177e7d431cd1
19 **/ 19 **/
20 20
21 21
22 #include "OpenGLFloatTextureRenderer.h" 22 #include "OpenGLFloatTextureRenderer.h"
23 23
24 #include <Core/OrthancException.h>
25
24 namespace OrthancStone 26 namespace OrthancStone
25 { 27 {
26 namespace Internals 28 namespace Internals
27 { 29 {
28 void OpenGLFloatTextureRenderer::UpdateInternal(const FloatTextureSceneLayer& layer, 30 void OpenGLFloatTextureRenderer::UpdateInternal(const FloatTextureSceneLayer& layer,
30 { 32 {
31 if (!context_.IsContextLost()) 33 if (!context_.IsContextLost())
32 { 34 {
33 if (loadTexture) 35 if (loadTexture)
34 { 36 {
37 if (layer.IsApplyLog())
38 {
39 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
40 }
41
35 context_.MakeCurrent(); 42 context_.MakeCurrent();
36 texture_.reset(new OpenGLFloatTextureProgram::Data( 43 texture_.reset(new OpenGLFloatTextureProgram::Data(
37 context_, layer.GetTexture(), layer.IsLinearInterpolation())); 44 context_, layer.GetTexture(), layer.IsLinearInterpolation()));
38 } 45 }
39 46