feat(immersive): add Phase 0 infrastructure for WebGL2 rendering
- Create src/lib/immersive/ module structure - Add types.ts with ImmersiveState, ImmersiveConfig interfaces - Add config.ts with build-time and runtime feature flags - Add ImmersiveRenderer.ts with lifecycle management and stores - Add index.ts as public API boundary - Add VITE_IMMERSIVE_ENABLED to vite.config.js - Add app.d.ts for TypeScript env declarations Build without immersive: QBZ_IMMERSIVE=false pnpm build No visual changes yet - this is capability detection and guards only.
This commit is contained in:
1 parent
600a33026a
commit
19d0916a46
6 files changed
+555
No files matched your search
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
}
|
||||
}
|
||||
|
||||
// Extend Vite's ImportMetaEnv with our custom env variables
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_BUILD_DATE: string;
|
||||
readonly VITE_IMMERSIVE_ENABLED: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in new issue
Block a user