sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
list of classes in this module
CMake target for BuildLah: SGEXTN::SG_RI
see this link for more information about BuildLah
The SG - RI module, both named after Raffles Institution and also short form for Renderer Interface, allows you to build custom renderers in SGEXTN.
This module should be used only to build renderers that display a custom SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ on the screen. This is not for 3 dimensional rendering or GPU based computation.
Every custom SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ has a SGRBaseRenderer that uses the shaders and optionally a SGRBaseSyncer for passing data to and from the shader. This is much simpler than OpenGL, Vulkan, or QRhi, but to use it properly you still must read through the tutorial here.
The actual vertex and fragment shaders in the form of GLSL files must be compiled and then made accessible to the application through the resource system. To ensure that, place them in the shaders folder. For more information about compiling and using shaders, see this tutorial.
Note that since the colour picker internally uses this module, this must be linked for using colour pickers even if you are not building custom shaders. In fact, the colour picker is provided as SGWColourPickerWidget which is in this module.
©2025 05524F.sg (Singapore)