
Scrolling and Mouse capabilities
Posted Wednesday, 30 January, 2013 - 11:00 by lid6j86I'm trying to create a map editor using a GLControl context. I put it in a split container, and I'd like the GLControl to be able to render the map (64x64 tile based). I'm trying to figure out two things:
The first is being able to scroll around in the world. Does it make more sense to make the glcontrol the size of the map and use the form controls to scroll, or does it make more sense to create an in-context scrollbar capability? Is there some other better way around this?
the second is I'd like to get the World coordinates of where the mouse is pointing, not the form pixel coordinates. any suggestions on that? I saw a couple things but I honestly don't know if they are correct so i wanted to see what everyone's opinion was.
- lid6j86's blog
- Login or register to post comments


Comments
Re: Scrolling and Mouse capabilities
I've been reading on Screen to World and World to Screen coordinates, and came across a lot of 'Project/Un-Project' stuff, specifically these 2 implimentations
could I please get some help in understanding how these work? (I figured out how to implement them, I'm just trying to understand what the code itself is doing here geometrically / mathematically)