Git Product home page Git Product logo

Comments (3)

Korijn avatar Korijn commented on June 14, 2024

https://github.com/almarklein/wgpu-py/blob/master/examples/cube_glfw.py

Thanks for using the library!

Note that we're still working on some details of the API, to make it less cumbersome, see #98 and #95

I'm also not entirely sure if we support pygame as a GUI toolkit.. if you manage to set it up, we'd be interested to learn how you got it to work!

from wgpu-py.

shazz avatar shazz commented on June 14, 2024

Thanks!
Uh, I did not see this example before, only the triangle... I should be blind!

Yeah, when you 're used to Python and do a lot in a few lines... that looks pretty "complicated" for a simple example (Not really complicated but a lot of code to do few).
So I guess some helper classes on top of it won't be totally useless (at least I will write some)

Concerning pygame, let me finish the wgpu+glfw+pygame integration and I'll share it for sure!

from wgpu-py.

almarklein avatar almarklein commented on June 14, 2024

I did not see this example before, only the triangle

It was added recently :)

So I guess some helper classes on top of it won't be totally useless

Absolutely! WGPU is still a bit more verbose than OpenGL. That said, the focus of wgpu-py is to provide exactly this API. Any higher level abstractions should be implemented in other libraries. E.g. we're working on a ThreeJS-like render engine in visvis2 (beware, this project will be renamed soonish).

There is currently one exception where we do provide an abstraction: wgpu.utils.compute_with_buffers()

from wgpu-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.