summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-03-14 10:30:49 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-03-14 10:30:49 -0400
commit6c652d155fe6af7af0d151c5187b8c4ed8abba2b (patch)
treef2348002e504c5a1cf19c721b2736ce46d962401 /README
parent0c017ecd3491d062d63ffa2e87d9198f5fd392b2 (diff)
graphics: Rewrite with-graphics-state to use state specs.
Treating the names inside the let-like form as just symbols caused numerous bugs where a program would crash because it was trying to set graphics state that was never defined due to the relevant module never being imported. By changing with-graphics-state to require passing in the <graphics-state-spec> object, much like how parameterize works with parameter objects, it completely eliminates this type of bug. If the module containing the spec variable isn't imported, there will be an undefined variable error thrown early on. Additionally, graphics state objects needed to have a stack added to them to track previous values so that with-graphics-state could restore them later. The old trick of using let to stash the previous values no longer worked with the new macro implementation.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions