SFML community forums
Bindings - other languages => DotNet => Topic started by: Kwang1imsa on October 29, 2010, 06:35:08 pm
-
I'd like to preserve the scale of what I'm drawing to the RenderWindow instead of the projection resizing to fit with its size.
PreserveOpenGLState does not fix this for me. When I draw things in OpenGL, I reset the projection/viewport upon window resize and the scale is preserved. Is there a way where I can do this through SFML?
In addition, I know this may not be the place to ask this, but I'm having trouble binding textures and drawing images with Tao. I know the procedure of doing it in C++, but I am currently using the .Net binding.
Thanks.
-
I'd like to preserve the scale of what I'm drawing to the RenderWindow instead of the projection resizing to fit with its size.
Resize the window's view to the new size when you receive a Resized event; by default the view is not resized that's why everything is scaled.
In addition, I know this may not be the place to ask this, but I'm having trouble binding textures and drawing images with Tao. I know the procedure of doing it in C++, but I am currently using the .Net binding.
Can you give more details about what you want to do? Can you show the C++ way of doing it?