3 Commits

Author SHA1 Message Date
Diego Lopes
1ad076b969 feat: Add reflect clock sample and enhance framebuffer handling
- Introduced a new Lua script `reflect_clock.lua` that displays a clock with a reflection effect.
- Updated `rdoc.cap` to use the new sample and modified the executable path for debugging.
- Enhanced `FrameBuffer` class to support dynamic depth-stencil formats, allowing for more flexible rendering options.
- Added a new enum `DepthStencilFormat` to manage different depth-stencil configurations.
- Updated OpenGL clear function to conditionally clear depth and stencil buffers based on their enabled state.
- Improved the `Effect` class to ensure proper texture updates for GStreamer textures.
- Adjusted the `GraphicsContext` to set the clip space to match NanoVG's coordinate system.
- Cleaned up texture loading functions by removing unnecessary comments and ensuring clarity.
2026-03-21 17:02:40 -04:00
Diego Lopes
6200b74e77 Add OpenGL 4.6 backend for NanoVG
This commit introduces a new header file `nanovg_gl46.h` that implements
the NanoVG rendering context using OpenGL 4.6. The new backend utilizes
Direct State Access (DSA) functions, immutable texture storage, and
explicit layout qualifiers. It includes definitions for creating and
deleting the rendering context, as well as functions for handling images
with OpenGL 4.6.
2026-03-21 14:00:59 -04:00
Diego Lopes
e538df3673 Refactor code structure for improved readability and maintainability 2026-03-18 00:25:31 -04:00