Skip to content

Fix link errors due to unimplemented image drawing methods. - #13

Merged
pepc84 merged 1 commit into
processing-cpp:mainfrom
bogado:FIX2-1
Oct 20, 2026
Merged

pepc84 merged 1 commit into
processing-cpp:mainfrom
bogado:FIX2-1

Conversation

@bogado

@bogado bogado commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

The PApplet class declared PApplet::image(PImage&, float, float) and PApplet::image(PImage&, float, float, float, float).

But those were never implemented.

This fixes #11

The PApplet class declared `PApplet::image(PImage&, float, float)`
and `PApplet::image(PImage&, float, float, float, float)`.

But those were never implemented.
@pepc84

pepc84 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

You’re right, those two overloads were declared but never defined, so anything going through image(const PImage&) or the const pointer versions failed to link. I checked it against main and together with the Wayland PR, and it merges clean and every image call resolves now. The const_cast is fine since image() only touches its cache fields, though at some point I might make those mutable instead. Merging, thanks!

@pepc84
pepc84 merged commit 5a5045d into processing-cpp:main Oct 20, 2026
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.

Missing implementation of PApplet::image with 2 and 4 floats arguments.

2 participants