UIDrawable Rendering format change #6

Open
opened 2024-03-09 18:17:47 +00:00 by john · 1 comment
Owner

notes say:
6 feat: // 7DRL hack - TODO apply RenderTexture concept to all UIDrawables (via sf::RenderTarget) - void render(sf::Vector2f, sf::RenderTexture&);

UIDrawable implements render(), which calls the derived render implementation with sf::Vector2f() (equal to (0,0)). It should also provide a RenderTexture (the main window).

Prerequisite for UIFrames that "clip" contents to the parent's bounding box

notes say: 6 feat: // 7DRL hack - TODO apply RenderTexture concept to all UIDrawables (via `sf::RenderTarget`) - void render(sf::Vector2f, sf::RenderTexture&); UIDrawable implements `render()`, which calls the derived render implementation with `sf::Vector2f()` (equal to `(0,0)`). It should also provide a RenderTexture (the main window). Prerequisite for UIFrames that "clip" contents to the parent's bounding box
john added the
Major Feature
Alpha Release Requirement
labels 2024-03-09 18:17:47 +00:00
john added this to the All Datatypes Behaving milestone 2024-03-13 13:04:04 +00:00
john added this to the The Datatype Overhaul project 2024-03-13 13:06:47 +00:00
john removed this from the The Datatype Overhaul project 2024-03-13 13:12:41 +00:00
john added this to the Fun, Convenient McRogueFace Objects project 2024-03-13 14:37:11 +00:00
Author
Owner

while working on #43, I found a reference to Resources::game. It's how Caption/Frame/Grid/Sprite classes get their default render target.

I want to phase out Resources, but not exactly sure how to (probably just move the global Game reference into McRFPy_API or static in UIDrawable?)

while working on #43, I found a reference to `Resources::game`. It's how Caption/Frame/Grid/Sprite classes get their default render target. I want to phase out `Resources`, but not exactly sure how to (probably just move the global Game reference into `McRFPy_API` or static in `UIDrawable`?)
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#6
No description provided.