clear-screen

command
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Simplest GLES2 example: clear the framebuffer to a known color and verify.

Demonstrates:

  • EGL offscreen context setup (pbuffer surface)
  • Setting the clear color with ClearColor
  • Clearing the color buffer with Clear
  • Reading back pixels with ReadPixels to confirm the result

This is the "hello world" of OpenGL ES -- no shaders, no geometry, just proving that the GPU pipeline is alive by writing and reading a pixel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL