2 Graphics toolkit integration
Lars Bergstrom edited this page 2014-06-06 09:01:55 -07:00

In Servo, we currently use several graphical toolkits to handle basic window creation, mouse and keyboard events, and top-level draw surface creation. The two in use today are Rust wrappers around glfw and glut.

Per-toolkit code inside of Servo

A new toolkit is required to implement the traits defined in the file: https://github.com/mozilla/servo/blob/master/src/components/main/windowing.rs

Examples of this implementation for the GLFW integration is at: https://github.com/mozilla/servo/blob/master/src/components/main/platform/common/glfw_windowing.rs

The GLUT integration is at: https://github.com/mozilla/servo/blob/master/src/components/main/platform/common/glut_windowing.rs