18 #ifndef DS3D_GLPROCESS_GL_DEPTH_RENDER_CTX_H
19 #define DS3D_GLPROCESS_GL_DEPTH_RENDER_CTX_H
21 #include "ds3d/common/hpp/frame.hpp"
28 namespace ds3d {
namespace gl {
34 _imageProgInfo.
enabled = enableVideo;
35 _depthProgInfo.
enabled = enableDepth;
45 _minDepthColor = minDepthColor;
46 _maxDepthColor = maxDepthColor;
54 std::unique_ptr<VertexArray>
vao;
67 Program* imageProgram()
const {
return _imageProgInfo.
program.get(); }
68 Program* depthProgram()
const {
return _depthProgInfo.
program.get(); }
69 WindowInfo _initWindowInfo{1280, 720,
""};
80 std::unique_ptr<VertexBuf> _vertexBuf;
81 std::unique_ptr<VertexBuf> _coordBuf;
83 ProgramInfo _imageProgInfo;
84 ProgramInfo _depthProgInfo;
86 std::unique_ptr<Texture> _image;
87 std::unique_ptr<Texture> _depth;
88 std::unique_ptr<Texture> _depthColor;
89 float _depthScale = 1.0f;
90 float _minDepth = 0.3f;
91 float _maxDepth = 5.0f;
92 vec3b _minDepthColor = {{200, 200, 0}};
93 vec3b _maxDepthColor = {{50, 50, 50}};