Buttons


Basically made everything clickable and movable... I learned something that was in front of my face the entire opengl journey... POINTS (not lines or triangles, just to be super clear) are rendered in opengl from the center (that's the position that you give opengl, the center of the point), and aspect ratio-corrected positioning of the square shape of the point itself.  So mouseover determination must be aspect ratio adjusted on the x axis, given the size of pixels in the opengl coordinate system (-1 to 1 on both axes).

That is all for now, have fun moving things around the solar system if you happen to try out the re-factor, more on the custom gui when the coding mood hits me.

Thanks,

Programmer_Jeff

Files

rebuild.zip 286 kB
63 days ago

Get Space Trader re-Factor

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.