Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/ImageProcessingProgram.cpp @ 2066:cf3d85eb291c deep-learning
added class OpenGLTextureVolume
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 May 2023 17:18:14 +0200 |
parents | 4e31d76c7ecd |
children |
comparison
equal
deleted
inserted
replaced
2065:15f2e52835a1 | 2066:cf3d85eb291c |
---|---|
177 framebuffer.SetTarget(target, targetLayer); | 177 framebuffer.SetTarget(target, targetLayer); |
178 SetupPosition(); | 178 SetupPosition(); |
179 } | 179 } |
180 | 180 |
181 | 181 |
182 void ImageProcessingProgram::Use(OpenGLTextureVolume& target, | |
183 unsigned int z, | |
184 OpenGLFramebuffer& framebuffer, | |
185 bool checkStatus) | |
186 { | |
187 program_.Use(checkStatus); | |
188 framebuffer.SetTarget(target, z); | |
189 SetupPosition(); | |
190 } | |
191 | |
192 | |
182 void ImageProcessingProgram::Render() | 193 void ImageProcessingProgram::Render() |
183 { | 194 { |
184 glClearColor(0.0, 0.0, 0.0, 1.0); | 195 glClearColor(0.0, 0.0, 0.0, 1.0); |
185 glClear(GL_COLOR_BUFFER_BIT); | 196 glClear(GL_COLOR_BUFFER_BIT); |
186 | 197 |