summaryrefslogtreecommitdiff
path: root/kmscube/cube-egl.h
AgeCommit message (Collapse)Author
2025-12-18fix: Add explicit keyword to single-argument constructorsTomi Valkeinen
This commit addresses cppcheck warnings about constructors with single arguments that are not marked as explicit (noExplicitConstructor). Single-argument constructors can perform implicit type conversions which may lead to unexpected behavior and bugs. Marking them as explicit prevents these implicit conversions and makes the code more predictable. Changes made: - kmscube/cube-egl.h: Added explicit keyword to EglState constructor - kmscube/cube-gbm.cpp: Added explicit keyword to GbmDevice constructor These changes improve type safety by requiring explicit construction calls and preventing unintended implicit conversions.
2024-12-09Implement native visual matchingKaido Kert
Implement matching GBM buffer format to EGL NATIVE_VISUAL_ID. eglChooseConfig cannot match on NATIVE_VISUAL_ID, but GBM/EGL requires matching formats. Similar logic is implemented in kmscube code in match_config_to_visual. X11, Wayland and Null cube demos remain unchanged. Tested on Raspi-4 and VirtualBox/Ubuntu
2020-10-09Bulk format of all filesTomi Valkeinen
2016-04-16kmscube: split into partsTomi Valkeinen