Skip to content

Commit

Permalink
refactor: separate layer and shape-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
hpcreery committed Nov 30, 2024
1 parent a397d49 commit 353d24a
Show file tree
Hide file tree
Showing 9 changed files with 698 additions and 673 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState, useEffect, useContext } from "react"
import { Group, Modal, NumberInput, Switch, Space, Button, Stack, Paper, Input } from "@mantine/core"
import { Binary, TransformOrder } from "@src/renderer/types"
import { Binary } from "@src/renderer/types"
import { TransformOrder } from "@src/renderer/transform"
import type { LayerInfo } from "@src/renderer/engine"
import { vec2 } from "gl-matrix"
import { EditorConfigProvider } from "@src/contexts/EditorContext"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/renderer/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Shapes from "./shapes"
import * as Symbols from "./symbols"
import { glFloatSize } from "./constants"
import { FeatureTypeIdentifier, Binary } from "./types"
import { MacroRenderer, StepAndRepeatRenderer } from "./layer"
import { MacroRenderer, StepAndRepeatRenderer } from "./shape-renderer"

import PadFrag from "../shaders/src/Pad.frag"
import PadVert from "../shaders/src/Pad.vert"
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/renderer/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import * as Shapes from "./shapes"
import * as Comlink from "comlink"
import plugins from "./plugins"
import type { Plugin, PluginsDefinition, AddLayerProps } from "./plugins"
import type { Units, BoundingBox, Transform } from "./types"
import type { Units, BoundingBox } from "./types"
import Transform from "./transform"
import GridFrag from "../shaders/src/Grid.frag"
import OriginFrag from "../shaders/src/Origin.frag"
import LoadingFrag from "../shaders/src/Loading/Winding.frag"
Expand Down
Loading

0 comments on commit 353d24a

Please sign in to comment.