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

requirement of zoom #2

Open
jjqcat opened this issue May 14, 2020 · 3 comments
Open

requirement of zoom #2

jjqcat opened this issue May 14, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@jjqcat
Copy link

jjqcat commented May 14, 2020

Hi , would you support zoom object or window rectangle to full view ?

@BrutPitt
Copy link
Owner

BrutPitt commented May 14, 2020

Hi, and thanks to write.
I hope I understand correctly your question.

Currently, no... and I would to maintain the tool in abstract layer and independent from graphical frameworks: to use a window/rectangle zoom I should visualize a graphical rectangle on the screen and use graphic functions from OpenGL/DX/Vulkan/... or from 2D frameworks like SDL/SFML/...

But maybe I could make a function available to pass top left and bottom right corners parameters and leave the task to the user to draw the rectangle ad use mouse/key combination
(Or have you a personal way/idea/proposal?)

Instead, recently (a week ago), I have implemented a proportional pan/zoom speed by PoV distance, to maintain mouse movements constants (and variable pan/zoom speed)... passing also the current PoV distance (or object distance):
BrutPitt/glChAoS.P@62ccc79#diff-60af3e263cca88d3bff1913f2fab11ae

It's not yet committed here (but it will be within a few days).
I am testing it in the last glGhAoS.P release, and it's currently available only in wglChAoS.P WebGL binary release.

But new vGizmo.h source file is available here: https://github.com/BrutPitt/glChAoS.P/blob/master/src/src/tools

And here you can see as I use the new calls (the way to use is not definitive... is testing phase):
BrutPitt/glChAoS.P@62ccc79#diff-253f122f1da3dbe1a1a63e0439a67791
Inside onMotion(int x, int y) and onMouseWheel(int wheel, int direction, int x, int y) functions

@BrutPitt BrutPitt added the enhancement New feature or request label May 14, 2020
@jjqcat
Copy link
Author

jjqcat commented May 14, 2020

yes,you're right and understand what I mean. thanks

@jjqcat
Copy link
Author

jjqcat commented May 18, 2020

I will be glad to test the library if supports zoom in by rectangle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants