Texture display bounds for non-uniform sprite content #235
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#233 Enhance Entity rendering and positioning capabilities
john/McRogueFace
Reference
john/McRogueFace#235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Support textures where the actual sprite content doesn't fill the entire cell, allowing centered or offset sprites within larger texture cells.
Parent issue: #233
Use Case
A 32×32 texture atlas where each cell contains a centered 16×24 sprite with transparent padding. The texture stores sprites in a uniform grid, but the actual content is smaller and offset.
Current Behavior
The entire cell is used; no concept of "display bounds" vs "cell bounds".
Proposed Changes
Extend PyTexture constructor:
Add to PyTexture class:
Modify sprite creation:
Performance Impact
None - conditional origin set in existing code path.
Files Affected
src/PyTexture.h- Add display bounds propertiessrc/PyTexture.cpp- Modify constructor and sprite() method