Rust编程语言的高性能图形API:gfx-rs

jopen 8年前

gfx-rs是一个用于Rust编程语言的高性能,无约束的图形API。它的目标是成为Rust图形的默认API。

Why gfx-rs?

  • Graphics APIs are mostly designed with C and C++ in mind, and hence are dangerous and error prone, with little static safety guarantees.
  • Providing type safe wrappers around platform-specific APIs is feasible, but only pushes the problem of platform independence to a higher level of abstraction, often to the game or rendering engine.
  • Modern graphics APIs, whilst providing a great degree of flexibility and a high level of performance, often have a much higher barrier to entry than traditional fixed-function APIs.
  • Graphics APIs like OpenGL still require the developer to 'bind' and 'unbind' objects in order to perform operations on them. This results in a large amount of boiler plate code, and brings with it the usual problems associated with global state.

Crate hierarchy

dependencies.png

项目主页:http://www.open-open.com/lib/view/home/1416205853070