Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics pipeline refactor #461

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Graphics pipeline refactor #461

merged 3 commits into from
Oct 24, 2024

Conversation

tomsci
Copy link
Collaborator

@tomsci tomsci commented Oct 24, 2024

No description provided.

Also fixed case issue in trappable commands list
* Move text rendering Lua-side.
* Simplified digit font to use 32x8 font bitmap like everything else.
* All Canvases are now internally backed by a 32-bit buffer, to simplify
  rendering.
* All custom inverted drawing logic moved from Canvas to CGContext,
  CGContext.draw() now being given direct access to the Canvas backing
  buffer to facilitate that.
* Direct (non-CoreGraphics) line drawing logic now used for all modes,
  not just inverted, for consistency (no more hairy lines as a result).
  Also fixed off-by-two error in that logic when drawing lines with
  negative x or y direction.
* Box drawing also updated to use direct line drawing.
* All invert operations now supported on colour drawables as well as
  greyscale ones.
* Invert supported on all gCOPY (and now by extension, text rendering)
  operations.
* Improved performance of text rendering with optimised .copy and .mcopy
  operations.
* Canvas.swift and CGContext.swift no longer rely on anything from
  UIKit.
* More consistent support for gSETPENWIDTH.
* Be bug-compatible with allowing negative colour values in gCOLOR.
@tomsci tomsci merged commit 8d4c412 into main Oct 24, 2024
2 checks passed
@tomsci tomsci deleted the tomsci-text-refactor branch October 24, 2024 17:07
@jbmorley jbmorley linked an issue Oct 24, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OPLcolour] OpoLua freezes
1 participant