Skip to content

Commit

Permalink
fix(examples): Fix typos of registerAdapters (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredricj committed Jun 18, 2024
1 parent a999dc6 commit d8db536
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/api/animation/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<script type="module">
import {luma} from '@luma.gl/core';
import {webglAdaprter} from '@luma.gl/webgl';
import {webgl2Adapter} from '@luma.gl/webgl';
luma.registerAdapters([webgl2Adapter]);

import AnimationLoopTemplate from './app.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/api/cubemap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/api/texture-3d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/script/webgl/transform-feedback/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/instancing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {webgl2Adapter} from '@luma.gl/webgl';
import {webgpuAdapter} from '@luma.gl/webgpu';
import AnimationLoopTemplate from './app.ts';
luma.reagisterAdapters([/*webgpuAdapter, */ webgl2Adapter]);
luma.registerAdapters([/*webgpuAdapter, */ webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/persistence/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import {webgl2Adapter} from '@luma.gl/webgl';
import {makeAnimationLoop} from '@luma.gl/engine';
import AppAnimationLoop from './app.ts';
luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
const animationLoop = makeAnimationLoop(AppAnimationLoop);
animationLoop.start();
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-cube/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/hello-gltf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
// luma.reagisterAdapters([webglDevice, webgpuDevice]);
luma.registerAdapters([webgl2Adapter]);
// luma.registerAdapters([webglDevice, webgpuDevice]);

const resolution = 2;
const device = luma.createDevice({width: resolution * window.innerWidth, height: resolution * window.innerHeight});
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-instanced-cubes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([we, webglDevice]);
luma.registerAdapters([webgpuAdapter, webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start({canvas: 'canvas'});
</script>
<body style=" margin: 0px;">
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-instancing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/hello-triangle-geometry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
// luma.reagisterAdapters([webglDevice, webgpuDevice]);
luma.registerAdapters([webgl2Adapter]);
// luma.registerAdapters([webglDevice, webgpuDevice]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-triangle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgpuDevice, webglDevice]);
luma.registerAdapters([webgpuAdapter, webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start({canvas: 'canvas'});
</script>
<body style="margin: 0;">
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-two-cubes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgpuDevice, webglDevice]);
luma.registerAdapters([webgpuAdapter, webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start({canvas: 'canvas'});
</script>
<body style=" margin: 0px;">
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/lighting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/shader-hooks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/shader-modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgl2Adapter]);
luma.registerAdapters([webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start();
</script>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu/textured-cube/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';

luma.reagisterAdapters([webgpuDevice, webglDevice]);
luma.registerAdapters([webgpuAdapter, webgl2Adapter]);
makeAnimationLoop(AnimationLoopTemplate).start({canvas: 'canvas'});
</script>
<body style=" margin: 0px;">
Expand Down

0 comments on commit d8db536

Please sign in to comment.