pixijs-core-concepts

安装量: 860
排名: #4643

安装

npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-core-concepts

Foundational model for how PixiJS v8 gets pixels on the screen: the renderer decides which GPU backend to use, the render loop drives per-frame work, and the environment layer adapts the library to browser, Web Worker, or SSR contexts. For the scene graph itself (Containers, transforms, destroy), see pixijs-scene-core-concepts . Quick Start console . log ( app . renderer . name ) ; // 'webgl' | 'webgpu' | 'canvas' app . ticker . add ( ( ticker ) => { sprite . rotation += 0.01 * ticker . deltaTime ; } ) ; const tex = app . renderer . extract . texture ( { target : app . stage } ) ; app . renderer . render ( { container : app . stage } ) ; app.renderer is the WebGLRenderer , WebGPURenderer , or CanvasRenderer chosen by autoDetectRenderer . The TickerPlugin drives renderer.render() automatically; call it manually only with autoStart: false . Backend selection happens in Application.init({ preference }) ; see pixijs-application for setup.

返回排行榜