-
Draw image out of viewport
Hi,
Can I set the viewport to one size and draw image with larger size than viewport tha I see only th part of image?
Thank's
Alexei
-
Re: Draw image out of viewport
OpenGL will clip to the viewport whatever you throw at it.
So for example if you're in a 640x480 window in ortho mode and you draw a 800x600 quad using glVertex2i then that quad will be clipped to the screen just fine.
-
Re: Draw image out of viewport
Hi,
I want to show only part of image ( of my drawing). I need it for zoom in.
-
Re: Draw image out of viewport
If you need to zoom in, you should change camera settings, not the viewport. You can do it with gluLookAt, or whatever modelView transformation you are using.
-
Re: Draw image out of viewport
Hi,
I have tryed this but it doesn't help me...
Thank's
Alexei
-
Re: Draw image out of viewport
Can you precise as much as you can what you want ? I read your post several times but I still don't understand what your problem really is.
-
Re: Draw image out of viewport
Hi,
I have solved my problem.
Thank's
Alexei
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules