summaryrefslogtreecommitdiffstats
path: root/virtual-programs/display.folk (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish refactor (GPU, util libs). Remove laptop.tcl. Fix calibrate.Omar Rizwan2024-05-141-4/+1552
| | | | Fix folk.tcl calibrate.
* move ::getColor to Colors.tclAndrés Cuervo2024-05-071-6/+0
|
* Add rgb, hsl, & hex as color formatsAndrés Cuervo2024-05-061-6/+4
|
* Gpu,display: More hack laptop fixes so virtual programs workOmar Rizwan2024-05-031-0/+6
|
* display: more macOS fixes (fix display width and height claim)Omar Rizwan2024-04-291-6/+9
|
* display: Hacks to make it run on macOSOmar Rizwan2024-04-291-1/+13
|
* Use HDMI1 on some gadgetsOmar Rizwan2024-04-091-1/+6
|
* display: Handle bit at end of fbset resolutionOmar Rizwan2023-11-021-1/+1
|
* display: Handle if this doesn't existOmar Rizwan2023-10-261-0/+1
|
* display: Warn instead of error for deprecated methodsOmar Rizwan2023-10-231-25/+52
| | | | Clean up camera/display/calibration reactivity slightly
* display: Simplify GPU statement -> pipeline dispatchOmar Rizwan2023-10-231-22/+13
|
* display: Catch missing shaderOmar Rizwan2023-10-161-16/+24
|
* Merge branch 'main' into osnr/multiple-on-process-blocksOmar Rizwan2023-10-131-0/+2
|\
| * Merge pull request #98 from FolkComputer/nm/display-arcOmar Rizwan2023-10-091-0/+32
| |\ | | | | | | Implement arc primitive
| | * display: Remove filled arg from arcOmar Rizwan2023-10-091-3/+3
| | |
| | * Implement arc primitiveNaveen Michaud-Agrawal2023-10-071-0/+32
| | | | | | | | | | | | | | | The arc is specified as start angle (from positive x axis) plus arc length (both in the range [0, 2*pi))
| * | Add claim for display sizeNaveen Michaud-Agrawal2023-10-071-0/+2
| |/
* | display: nitOmar Rizwan2023-10-131-1/+0
| |
* | display: Report shader compilation errors, catch render errorsOmar Rizwan2023-10-131-3/+13
| |
* | display,mask-tags,fill: Add layer supportOmar Rizwan2023-10-131-17/+22
| | | | | | | | Only implemented minimum for mask-tags for now.
* | display: Error on Display:: calls; implement titles with wishOmar Rizwan2023-10-121-1/+1
| |
* | text: Batch glyphs into one wish -- fixes performance.Omar Rizwan2023-10-121-0/+8
| |
* | display/text: Write glyphs straight to displaylist. Hack, but fasterOmar Rizwan2023-10-061-3/+5
| |
* | display: WIP: Refactor into files; use wishes, not Display::Omar Rizwan2023-10-061-429/+72
| | | | | | | | | | | | | | | | Expose shader stuff to user programs for the first time. Mostly works, but display thread and main thread run much slower (28fps display, 70fps main). Also introduce dict getwithdefault (helpful for rest options).
* | Merge branch 'main' into osnr/multiple-on-process-blocksOmar Rizwan2023-10-061-7/+33
|\|
| * display: Make image cache shrink when more fonts are loadedOmar Rizwan2023-10-061-1/+1
| |
| * display: Catch errors, so we don't hard crash if font doesn't existOmar Rizwan2023-10-061-1/+4
| |
| * oops, forgot to add to the 2nd functionArcade Wise2023-10-061-1/+1
| |
| * Add changing fonts as an option to text renderingArcade Wise2023-10-061-5/+28
| |
* | process: Allow running multiple On process blocks on processOmar Rizwan2023-10-061-8/+2
|/ | | | | | | | | Turn off share wishes/claims default for subprocesses, so you (for now) have to explicitly specify sharing if you want any to happen. On process now only spawns process if it doesn't exist but always runs the code block (which now happens through a statement instead of directly on init).
* display: Camera slice works! Always evict stale draw set imagesOmar Rizwan2023-09-301-0/+12
|
* main,display: Version the Folk heap; evict stale/unused images.Omar Rizwan2023-09-301-7/+48
| | | | | This at least keeps camera slices from crashing the system. TODO: Don't draw stale images.
* display: Fix text extent computation / centeringOmar Rizwan2023-09-291-1/+3
|
* display: Load images before starting Gpu frameOmar Rizwan2023-09-281-4/+13
|
* display: Center text again, shrink it a bitOmar Rizwan2023-09-281-3/+12
|
* Gpu: Convert 1 & 3-channel images at callee. Start fixing cam slice.Omar Rizwan2023-09-281-2/+2
| | | | Removes rechannel!
* Gpu: Clean up sampler2D accesses. Clean up dep fns for fns.Omar Rizwan2023-09-281-4/+4
| | | | | No more arbitrary samplers array -- you can just use the argname directly as a parameter to texture().
* display: Image rotation works. Also fix text rotation issues?Omar Rizwan2023-09-271-12/+16
| | | | | Use fix from shadertoy comment to remove invBilinear instability on rotation.
* display: Basic image support (no rotation/scale yet + cache is hack)Omar Rizwan2023-09-271-1/+33
| | | | Fix various stride bugs with iamge copying/rechanneling.
* display: This seems to fix fillQuadOmar Rizwan2023-09-271-1/+1
|
* display: Implement fillTriangle; fillPolygon also seems to work.Omar Rizwan2023-09-271-3/+36
|
* display: Add circle support.Omar Rizwan2023-09-261-16/+30
|
* display: Reintroduce stroke color supportOmar Rizwan2023-09-261-3/+10
|
* display: Fix more glyph anglesOmar Rizwan2023-09-231-4/+4
|
* display: Fix glyph anglesOmar Rizwan2023-09-231-4/+4
|
* Gpu/display: Move a lot of glyph logic into shaderOmar Rizwan2023-09-231-9/+35
| | | | | Make vertex fns work. Effect on Pi 4 performance is good (15fps) but not great.
* Gpu/display: Unify fns and args; start on frag argsOmar Rizwan2023-09-231-1/+1
| | | | | Preparing to do more with vertex shaders (compute quads and pass to frag) to reduce CPU work and speed up Pi 4.
* display: Fix line verticesOmar Rizwan2023-09-211-1/+1
|
* display: Fix textMetricsOmar Rizwan2023-09-201-4/+5
|
* display: Text rotate works.Omar Rizwan2023-09-191-19/+49
| | | | Delete old code for lineclip/rotate