Closed RinzuTheCoder closed 4 years ago
I'm curious which program you are running to get these results. It sounds like you are using Glut, which I don't think accounts for the program title bar in Windows. That may be why you are getting an offset. Those numbers come from Glut directly I believe.
If you use OpenGL.Platform (which uses SDL2) then you should get a range from 0,0 to 1200,720, since SDL2 does account for the title bar of the window. Hopefully this explains it.
Do you have any update on this? Will mark as closed if not. Thanks
No do not, has anyone else check it out? Im trying to make a game engine and with recent events in my life i cant show you the back end. My architecture is unique. This is all i feel comfortable showing
On Thu, Apr 16, 2020, 1:51 PM Charles Ambrye notifications@github.com wrote:
Do you have any update on this? Will mark as closed if not. Thanks
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/giawa/opengl4csharp/issues/33#issuecomment-614888603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VTBGMMGX3C2SCUQ2IHT3RM5VWFANCNFSM4LN6WVIA .
Are you using Glut? Or are you using OpenGL.Platform (which uses SDL). Since you used 'Glut' in the title I am guessing you are using someone else's library/code for window handling, in which case I think this issue belongs with that project. If you can confirm that then I can close this. Thanks
In this case i am the person who made the library
On Thu, Apr 16, 2020, 2:18 PM Charles Ambrye notifications@github.com wrote:
Are you using Glut? Or are you using OpenGL.Platform (which uses SDL). Since you used 'Glut' in the title I am guessing you are using someone else's library/code for window handling, in which case I think this issue belongs with that project. If you can confirm that then I can close this. Thanks
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/giawa/opengl4csharp/issues/33#issuecomment-614901645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VTBFJPU2AJIJVPUHOEADRM5Y23ANCNFSM4LN6WVIA .
Im using glut
On Thu, Apr 16, 2020, 2:54 PM David Harris david4gamedesign@gmail.com wrote:
In this case i am the person who made the library
On Thu, Apr 16, 2020, 2:18 PM Charles Ambrye notifications@github.com wrote:
Are you using Glut? Or are you using OpenGL.Platform (which uses SDL). Since you used 'Glut' in the title I am guessing you are using someone else's library/code for window handling, in which case I think this issue belongs with that project. If you can confirm that then I can close this. Thanks
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/giawa/opengl4csharp/issues/33#issuecomment-614901645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VTBFJPU2AJIJVPUHOEADRM5Y23ANCNFSM4LN6WVIA .
In that case I think it will be up to you (or Glut) to deal with scaling the co-ordinates to whatever co-ordinate system you would like.
How do i get in contact with devs of glut?
On Thu, Apr 16, 2020, 3:26 PM Charles Ambrye notifications@github.com wrote:
In that case I think it will be up to you (or Glut) to deal with scaling the co-ordinates to whatever co-ordinate system you would like.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/giawa/opengl4csharp/issues/33#issuecomment-614928567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VTBGCBY7AFPTMFUMHDXTRM6AYDANCNFSM4LN6WVIA .
Hopefully you're using FreeGlut, as the original Glut is no longer in development. You can find them here! http://freeglut.sourceforge.net/ Good luck!
The top right corner of a window with width 1200 and height of 720 has a vector2 coordinate at about (36, 21). is this correct? If Vector2.Zero is the center of the window shouldnt the top right corner be Vector2(600, 360)? If the origin of the Window was at the the bottom left corner wouldn't the top right corner be Vector2(1200, 720)?