Definition at line 77 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.


Public Member Functions | |
| BaseRenderPriv ()=default | |
| virtual | ~BaseRenderPriv ()=default |
| ErrCode | syncData () override |
| BaseRenderPriv ()=default | |
| virtual | ~BaseRenderPriv ()=default |
| ErrCode | syncData () override |
| void | setWindow (GuardGlWindow w) override |
| void | setWindow (GuardGlWindow w) override |
| GuardGlWindow | getWindow () override |
| GuardGlWindow | getWindow () override |
| virtual ErrCode | initResource ()=0 |
| virtual ErrCode | initResource ()=0 |
| virtual ErrCode | uploadData (GuardDataMap datamap)=0 |
| virtual ErrCode | uploadData (GuardDataMap datamap)=0 |
| virtual ErrCode | draw (GuardDataMap datamap)=0 |
| virtual ErrCode | draw (GuardDataMap datamap)=0 |
| virtual ErrCode | deinitResource ()=0 |
| virtual ErrCode | deinitResource ()=0 |
| virtual ErrCode | configure (const char *yamlConfig, uint32_t size) |
| virtual ErrCode | configure (const char *yamlConfig, uint32_t size) |
| virtual ErrCode | flush () |
| virtual ErrCode | flush () |
Static Public Member Functions | |
| static ErrCode | parseConfig (const std::string &yamlStr, BaseRenderConfig &config) |
| static functions for backward compatibility More... | |
| static void | getMVPFrom (mat4f &m, mat4f &v, mat4f &p, const BaseRenderConfig &config) |
| static void | normalizeViewPort (const ViewLayout &layout, uint32_t winW, uint32_t winH, NormalViewPort &normalizedView) |
| static void | calculateViewPort (const NormalViewPort &normalizedView, uint32_t winW, uint32_t winH, int32_t &x, int32_t &y, uint32_t &width, uint32_t &height) |
| static ErrCode | parseConfig (const std::string &yamlStr, BaseRenderConfig &config) |
| static functions for backward compatibility More... | |
| static void | getMVPFrom (mat4f &m, mat4f &v, mat4f &p, const BaseRenderConfig &config) |
| static void | normalizeViewPort (const ViewLayout &layout, uint32_t winW, uint32_t winH, NormalViewPort &normalizedView) |
| static void | calculateViewPort (const NormalViewPort &normalizedView, uint32_t winW, uint32_t winH, int32_t &x, int32_t &y, uint32_t &width, uint32_t &height) |
Protected Member Functions | |
| Ptr< Program > & | shader () |
| Ptr< VertexArray > & | vao () |
| NormalViewPort & | normalizedView () |
| mat4f & | model () |
| mat4f & | view () |
| mat4f & | project () |
| ErrCode | initBase (const BaseRenderConfig &conf) |
| ErrCode | clearBase () |
| void | initMvpFromConfig (const BaseRenderConfig &conf) |
| ErrCode | buildShader (const std::vector< std::string > &scripts, const std::vector< GLenum > &types) |
| ErrCode | storeViewPort (const ViewLayout &layout) |
| ErrCode | calculateViewPort (int32_t &x, int32_t &y, uint32_t &width, uint32_t &height) |
| ErrCode | createVao () |
| Ptr< Program > & | shader () |
| Ptr< VertexArray > & | vao () |
| NormalViewPort & | normalizedView () |
| mat4f & | model () |
| mat4f & | view () |
| mat4f & | project () |
| ErrCode | initBase (const BaseRenderConfig &conf) |
| ErrCode | clearBase () |
| void | initMvpFromConfig (const BaseRenderConfig &conf) |
| ErrCode | buildShader (const std::vector< std::string > &scripts, const std::vector< GLenum > &types) |
| ErrCode | storeViewPort (const ViewLayout &layout) |
| ErrCode | calculateViewPort (int32_t &x, int32_t &y, uint32_t &width, uint32_t &height) |
| ErrCode | createVao () |
Protected Attributes | |
| Ptr< Program > | _shader |
| Ptr< VertexArray > | _vao |
| Ptr< CudaStream > | _cudaStream |
| NormalViewPort | _normalizedView |
| normalized viewport posion in the window More... | |
| mat4f | _modelMat = eye4x4() |
| mat4f | _viewlMat = eye4x4() |
| mat4f | _projMat = eye4x4() |
| GuardGlWindow | _window |
|
default |
|
virtualdefault |
|
default |
|
virtualdefault |
|
inlineprotected |
Definition at line 131 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _shader, ds3d::gl::BuildProgramFromSource(), DS3D_FAILED_RETURN, ds3d::kGL, ds3d::kGood, absl::move(), and shader().
|
inlineprotected |
Definition at line 131 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _shader, ds3d::gl::BuildProgramFromSource(), DS3D_FAILED_RETURN, ds3d::kGL, ds3d::kGood, absl::move(), and shader().
|
inlinestatic |
Definition at line 290 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References normalizedView(), width, ds3d::__xy< T >::x, ds3d::gl::NormalViewPort::xy0, ds3d::gl::NormalViewPort::xy1, and ds3d::__xy< T >::y.
|
inlinestatic |
Definition at line 290 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References normalizedView(), width, ds3d::__xy< T >::x, ds3d::gl::NormalViewPort::xy0, ds3d::gl::NormalViewPort::xy1, and ds3d::__xy< T >::y.
|
inlineprotected |
Definition at line 150 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView, DS3D_ERROR_RETURN, DS3D_FAILED_RETURN, DS_ASSERT, ds3d::gl::Window::getFrameBufferSize(), ds3d::gl::BaseRender::getWindow(), ds3d::kGood, ds3d::kParam, and width.
Referenced by calculateViewPort().
|
inlineprotected |
Definition at line 150 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView, calculateViewPort(), DS3D_ERROR_RETURN, DS3D_FAILED_RETURN, DS_ASSERT, ds3d::gl::Window::getFrameBufferSize(), ds3d::gl::BaseRender::getWindow(), ds3d::kGood, ds3d::kParam, and width.
|
inlineprotected |
Definition at line 116 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, and ds3d::kGood.
|
inlineprotected |
Definition at line 116 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, and ds3d::kGood.
|
inlinevirtualinherited |
Reimplemented in ds3d::gl::PointCloudRenderCtxImpl, ds3d::gl::PointCloudRenderCtxImpl, ds3d::gl::Texture3DRenderCtx, and ds3d::gl::Texture3DRenderCtx.
Definition at line 43 of file sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::kGood.
|
inlinevirtualinherited |
Reimplemented in ds3d::gl::PointCloudRenderCtxImpl, ds3d::gl::PointCloudRenderCtxImpl, ds3d::gl::Texture3DRenderCtx, and ds3d::gl::Texture3DRenderCtx.
Definition at line 43 of file 9.2/sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::kGood.
|
inlineprotected |
Definition at line 162 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _vao, ds3d::gl::VertexArray::create(), and ds3d::kGood.
|
inlineprotected |
Definition at line 162 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _vao, ds3d::gl::VertexArray::create(), and ds3d::kGood.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Reimplemented in ds3d::gl::Texture3DRenderCtx, and ds3d::gl::Texture3DRenderCtx.
Definition at line 45 of file sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::kGood.
|
inlinevirtualinherited |
Reimplemented in ds3d::gl::Texture3DRenderCtx, and ds3d::gl::Texture3DRenderCtx.
Definition at line 45 of file 9.2/sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::kGood.
|
inlinestatic |
Definition at line 260 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References ds3d::gl::eye4x4(), ds3d::gl::glmMat4ToDS(), and ds3d::gl::vec3ToGlm().
|
inlinestatic |
Definition at line 260 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References ds3d::gl::eye4x4(), ds3d::gl::PerspectiveParam::far, ds3d::gl::PerspectiveParam::fov, ds3d::gl::glmMat4ToDS(), ds3d::gl::BaseRenderConfig::is2dOnly, ds3d::gl::BaseRenderConfig::lookat, ds3d::gl::BaseRenderConfig::lookatEnabled, ds3d::gl::BaseRenderConfig::modelMat, ds3d::gl::PerspectiveParam::near, ds3d::gl::BaseRenderConfig::perspective, ds3d::gl::BaseRenderConfig::perspectiveEnabled, ds3d::gl::ViewLookat::position, ds3d::gl::PerspectiveParam::ratio, ds3d::gl::ViewLookat::target, ds3d::gl::ViewLookat::up, and ds3d::gl::vec3ToGlm().
Referenced by initMvpFromConfig().
|
inlineoverridevirtualinherited |
Implements ds3d::gl::iGLRender.
Definition at line 57 of file 9.2/sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::gl::BaseRender::_window.
|
inlineoverridevirtualinherited |
Implements ds3d::gl::iGLRender.
Definition at line 57 of file sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::gl::BaseRender::_window.
Referenced by calculateViewPort(), and storeViewPort().
|
inlineprotected |
Definition at line 108 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, ds3d::gl::BaseRenderConfig::devId, DS3D_FAILED_RETURN, ds3d::kConfig, and ds3d::kGood.
|
inlineprotected |
Definition at line 108 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, DS3D_FAILED_RETURN, ds3d::kConfig, and ds3d::kGood.
|
inlineprotected |
Definition at line 126 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _modelMat, _projMat, _viewlMat, and getMVPFrom().
|
inlineprotected |
Definition at line 126 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _modelMat, _projMat, _viewlMat, and getMVPFrom().
|
pure virtualinherited |
|
pure virtualinherited |
|
inlineprotected |
Definition at line 104 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _modelMat.
|
inlineprotected |
Definition at line 104 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _modelMat.
|
inlineprotected |
Definition at line 103 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView.
Referenced by calculateViewPort(), and normalizeViewPort().
|
inlineprotected |
Definition at line 103 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView.
|
inlinestatic |
Definition at line 279 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References DS_ASSERT, normalizedView(), ds3d::__xy< T >::x, ds3d::gl::NormalViewPort::xy0, ds3d::gl::ViewLayout::xy0, ds3d::gl::NormalViewPort::xy1, ds3d::gl::ViewLayout::xy1, and ds3d::__xy< T >::y.
Referenced by storeViewPort().
|
inlinestatic |
Definition at line 279 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References DS_ASSERT, normalizedView(), ds3d::__xy< T >::x, ds3d::gl::NormalViewPort::xy0, ds3d::gl::NormalViewPort::xy1, and ds3d::__xy< T >::y.
|
inlinestatic |
static functions for backward compatibility
Definition at line 170 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References DS3D_FAILED_RETURN, ds3d::gl::eye4x4(), ds3d::isNear(), ds3d::kConfig, and ds3d::kGood.
|
inlinestatic |
static functions for backward compatibility
Definition at line 170 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References DS3D_FAILED_RETURN, ds3d::gl::eye4x4(), ds3d::gl::PerspectiveParam::far, ds3d::gl::PerspectiveParam::fov, ds3d::isNear(), ds3d::kConfig, ds3d::kGood, ds3d::gl::BaseRenderConfig::lookat, ds3d::gl::BaseRenderConfig::lookatEnabled, ds3d::gl::BaseRenderConfig::modelMat, ds3d::gl::PerspectiveParam::near, ds3d::gl::BaseRenderConfig::needColorClear, ds3d::gl::BaseRenderConfig::perspective, ds3d::gl::BaseRenderConfig::perspectiveEnabled, ds3d::gl::ViewLookat::position, ds3d::gl::PerspectiveParam::ratio, ds3d::gl::ViewLookat::target, ds3d::gl::ViewLookat::up, ds3d::gl::BaseRenderConfig::viewLayout, ds3d::gl::ViewLayout::xy0, and ds3d::gl::ViewLayout::xy1.
|
inlineprotected |
Definition at line 106 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _projMat.
|
inlineprotected |
Definition at line 106 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _projMat.
|
inlineoverridevirtualinherited |
Implements ds3d::gl::iGLRender.
Definition at line 56 of file 9.2/sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::gl::BaseRender::_window, and absl::move().
|
inlineoverridevirtualinherited |
Implements ds3d::gl::iGLRender.
Definition at line 56 of file sources/libs/ds3d/glprocess/gl_render_ctx.h.
References ds3d::gl::BaseRender::_window, and absl::move().
Definition at line 101 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _shader.
Definition at line 101 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _shader.
Referenced by buildShader().
|
inlineprotected |
Definition at line 139 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView, DS3D_ERROR_RETURN, DS3D_FAILED_RETURN, DS_ASSERT, ds3d::gl::BaseRender::getWindow(), ds3d::gl::Window::getWindowSize(), ds3d::kGood, ds3d::kParam, and normalizeViewPort().
|
inlineprotected |
Definition at line 139 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _normalizedView, DS3D_ERROR_RETURN, DS3D_FAILED_RETURN, DS_ASSERT, ds3d::gl::BaseRender::getWindow(), ds3d::gl::Window::getWindowSize(), ds3d::kGood, ds3d::kParam, and normalizeViewPort().
|
inlineoverridevirtual |
Reimplemented from ds3d::gl::BaseRender.
Definition at line 92 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, DS3D_ERROR_RETURN, and ds3d::kGood.
|
inlineoverridevirtual |
Implements ds3d::gl::iGLRender.
Definition at line 92 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _cudaStream, DS3D_ERROR_RETURN, and ds3d::kGood.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlineprotected |
Definition at line 102 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _vao.
|
inlineprotected |
Definition at line 102 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _vao.
|
inlineprotected |
Definition at line 105 of file 9.2/sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _viewlMat.
|
inlineprotected |
Definition at line 105 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
References _viewlMat.
|
protected |
Definition at line 81 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by clearBase(), initBase(), and syncData().
Definition at line 85 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by initMvpFromConfig(), and model().
|
protected |
normalized viewport posion in the window
Definition at line 84 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by calculateViewPort(), normalizedView(), and storeViewPort().
Definition at line 87 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by initMvpFromConfig(), and project().
Definition at line 79 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by buildShader(), and shader().
|
protected |
Definition at line 80 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by createVao(), and vao().
Definition at line 86 of file sources/libs/ds3d/glprocess/gl_render_base_priv.h.
Referenced by initMvpFromConfig(), and view().
|
protectedinherited |
Definition at line 61 of file sources/libs/ds3d/glprocess/gl_render_ctx.h.
Referenced by ds3d::gl::BaseRender::getWindow(), and ds3d::gl::BaseRender::setWindow().