Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Optimized Skia C++ Whiteboard
·
Module 5
Interactive Drawing & State Management
1
High-Frequency Input Capture with SDL2 Stylus Pressure
Capture high-frequency mouse and stylus input events from SDL2, including pressure data.
2
Storing Single Stroke Data
Implement a data structure to store a single user stroke, including position and pressure values.
3
Creating Pressure-Sensitive Paths
Generate a smooth, variable-width SkPath from a series of raw input points and pressure values.
4
Implementing Undo/Redo with the Command Pattern
Design a Command interface and a history manager to track user actions for Undo/Redo functionality.
5
Implementing an AddStrokeCommand
Implement a concrete AddStrokeCommand that encapsulates the data and logic for adding a new stroke.
Previous module
Core 2D Rendering with Skia
Next module
High-Throughput Data Structures