Results 1 to 2 of 2

Thread: Setting up a Clipping Rect in OpenGL thru SDL

  1. #1

    Setting up a Clipping Rect in OpenGL thru SDL

    I noted that calling SDL_SetClipRect doesn't do anything when you have SDL in OpenGL mode. I guess that this makes sense, as at this point your utilizing pure OpenGL and not the default SDL interface. But, this causes a problem for me, how exactly do I create a clipping rect in OpenGL?

    I know this has probably been asked 1000's of times, but I can't find it in my quick searches .

  2. #2

    Setting up a Clipping Rect in OpenGL thru SDL

    I think you need to look at glScissor. It restricts the drawing of the screen to a rectangular area. I'd give you an sample but I'm off out. sorry.
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •