comparison pytouhou/ui/glide/backend.py @ 772:7492d384d122 default tip

Rust: Add a Glide renderer (2D only for now) This is an experiment for a Rust renderer, iterating over the Python data using pyo3. It requires --feature=glide to be passed to cargo build, doesn’t support NPOT textures, text rendering, the background, or even msg faces, some of that may come in a future changeset.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 05 Sep 2022 17:53:36 +0200
parents
children
comparison
equal deleted inserted replaced
771:79c3f782dd41 772:7492d384d122
1 from libtouhou import glide
2 from .window import Window
3
4 def create_window(title, posx, posy, width, height, frameskip):
5 glide.create_window(title, posx, posy, width, height, frameskip)
6 return Window()
7
8 init = glide.init
9 GameRenderer = glide.GameRenderer