KMSCUBE: Spinning Cube Comes To The KMS Console

Written by Michael Larabel in Free Software on 4 September 2012 at 11:32 AM EDT. 14 Comments
FREE SOFTWARE
KMSCUBE has been announced this morning, which is a simple multi-colored spinning cube for running from the KMS console directly.

Rob Clark of Texas Instruments hacked together KMSCUBE and published the work today. He didn't write the KMSCUBE application out of thinking someone is legitimately after having a spinning cube running from their KMS console directly, but rather it's a good exercise for someone wishing to dive into the KMS/DRM, EGL, GBM, etc.

The heart of this KMSCUBE code is just a little over 600 lines of code for communicating with the DRM/KMS drivers, creating the EGL context, and drawing the multi-colored cube using GLES2 with GBM from Mesa to the console. KMSCUBE is very simple and should be easier for new developers to understand than looking at the code to KMSCON (the KMS-based console from user-space) or Wayland's Weston.

For those looking to dive deeper, there's also Jesse Barnes' guide to hacking with EGL and KMS from last year.

Those wanting to checkout the KMSCUBE test application can find Rob Clark's code on GitHub.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week