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

Add user friendly setWindowxxx(..) methods #77

Open
Stephane-D opened this issue Jan 3, 2017 · 1 comment
Open

Add user friendly setWindowxxx(..) methods #77

Stephane-D opened this issue Jan 3, 2017 · 1 comment
Assignees

Comments

@Stephane-D
Copy link
Owner

Stephane-D commented Jan 3, 2017

The current window setup methods :

void VDP_setWindowHPos(u16 right, u16 pos);
void VDP_setWindowVPos(u16 down, u16 pos);

are close to internals registers setup but not really user friendly.

Adding methods as :

VDP_setwnidowOff()
VDP_setWindowOnTop/Bottom/Left/Right(..)

would be much more easier to deal with.

Usage examples :
want a 32px high HUD at the top? (think shmups)
VDP_setWindowOnTop(4);

96px HUD at the side (don't forget width is in 16px steps, not 8px like height):
VDP_setWindowOnRight(6);

Set up window for vertical split screen (i.e. the right half of the screen):
VDP_setWindowOnRight(10);

@Stephane-D Stephane-D self-assigned this Jan 3, 2017
@etherton
Copy link

etherton commented Aug 9, 2023

Perhaps it makes sense to have the helper function units in pixels and >>3 or >>4 appropriately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants