Little test that I made to figure out how use the Present extension of X11 with XCB.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
1234567891011121314151617181920
  1. # XCB-Present-test-1
  2. Little test that I made to figure out how use the Present extension of X11 with XCB. It animates 2 squares moving around and show some stats. That's it. I didn't put in any code to manage its size so don't resize its window.
  3. To compile, just run make
  4. Dependencies :
  5. * C99 + posix
  6. * libxcb
  7. * libxcb-present
  8. * libxcb-util
  9. * libcairo
  10. Launch args :
  11. * -l <uint> : sets a frame divider to limit the framerate, (example `./test -l 2` -> run at 30Hz if X is running at 60Hz).
  12. * -a : async mode, update the animation as fast as possible without waiting for vblank
  13. Controls:
  14. * none