Skip to content

Commit

Permalink
refactor(webgl): update type-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 7, 2020
1 parent 0d23e3c commit b9685a4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/webgl/src/api/model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IObjectOf } from "@thi.ng/api";
import { AttribPool } from "@thi.ng/vector-pools";
import type { AttribPool } from "@thi.ng/vector-pools";
import type { IndexBufferSpec, IWebGLBuffer } from "./buffers";
import type { AttribBufferData, IShader, UniformValues } from "./shader";
import type { ITexture } from "./texture";
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/api/multipass.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IObjectOf } from "@thi.ng/api";
import { AttribPool } from "@thi.ng/vector-pools";
import type { AttribPool } from "@thi.ng/vector-pools";
import type { IFbo, IndexBufferSpec } from "./buffers";
import type { InstancingSpec, ModelAttributeSpecs, ModelSpec } from "./model";
import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/api/shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
import type { Func, Sym } from "@thi.ng/shader-ast";
import type { GLSLTarget } from "@thi.ng/shader-ast-glsl";
import type { ReadonlyVec } from "@thi.ng/vectors";
import { BlendEquation, BlendFunc } from "./blend";
import type { BlendEquation, BlendFunc } from "./blend";
import type { ExtensionBehaviors } from "./ext";
import type {
GLIntVec,
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/buffer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TypedArray } from "@thi.ng/api";
import { AttribPool } from "@thi.ng/vector-pools";
import type { AttribPool } from "@thi.ng/vector-pools";
import type { IndexBufferSpec, IWebGLBuffer } from "./api/buffers";
import {
DrawMode,
Expand Down
6 changes: 5 additions & 1 deletion packages/webgl/src/readpixels.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { ITexture, ReadableTextureFormat, TextureType } from "./api/texture";
import type {
ITexture,
ReadableTextureFormat,
TextureType,
} from "./api/texture";
import { FBO } from "./fbo";

export const readPixels = <
Expand Down

0 comments on commit b9685a4

Please sign in to comment.