Comments (3)
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
from virtualgizmo3d.
yes,you're right and understand what I mean. thanks
from virtualgizmo3d.
I will be glad to test the library if supports zoom in by rectangle
from virtualgizmo3d.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualgizmo3d.