Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

iram

Viewport on the fly

This topic is 6648 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to resize or change the position of the viewport on the command of the mouse. I am using PR_OpenViewport for each positioning. Is this the correct way ? I suspect the PR_OpenViewport will create a new viewport each time it is called.

Share this post


Link to post
Share on other sites
Advertisement
Hi Iram

Here a clip from the PR.CHM doc I download off of Ranoks
university site.PR_ResizeViewport:



Function: Changes the size of a viewport
Declaration: void PR_ResizeViewport (PR_VIEWPORT *viewport,PR_DWORD x0, PR_DWORD y0, PR_DWORD x1, PR_DWORD y1)
Remarks: This is used to resize a viewport which has already been opened with PR_OpenViewport. Resizing a viewport will not change the field of view of a camera. It only changes the scale of all rendering output.
Parameters: viewport - Pointer to the viewport
x0 - Left x coordinate of the viewport
y0 - Top y coordinate of the viewport
x1 - Right x coordinate of the viewport
y1 - Bottom y coordinate of the viewport
Return Value: None
See Also: PR_SetViewport, PR_OpenViewport, PR_CloseViewport, PR_ShowViewport


This info should help
Doug

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Could you give that link, at Ranoks university??
Does it have any docs for Power render??
thanks

Bruno

Share this post


Link to post
Share on other sites
Hi Bruno

Try http://www.egerter.com/news.htm, this is where you can download a copy of the "Windows Help Documentation" for Power Render ver 3.0. Its no longer posted on Ranok''s univerity site due to conflicts with university policy.

Doug

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!