vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.41k stars 66 forks source link

Separate sketch window class #134

Closed Kevinpgalligan closed 10 months ago

Kevinpgalligan commented 10 months ago

An attempt to fix the first render being lost due to window resizing (see: https://github.com/vydd/sketch/issues/69).

This is achieved by creating a separate sketch-window class so that sketch doesn't have to inherit from gl-window. That way, the slots of sketch can be initialized BEFORE the window gets created, and the window can be assigned the correct dimensions from the start, avoiding a resize.

Implementation notes:

Various parts of the code, as well as debugging help, were contributed by @Gleefre :)