Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Clipping Mask to do a 2D GUI list box

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012

    Clipping Mask to do a 2D GUI list box

    Hello, I am doing a menu system for my game right now. I would like to know what is the best way to do a clipping mask for a list box in OpenGL. The list can be of any lenght but the control itself has a set height. Which means that everything too long gets clipped and I show a vertical scroll bar on the side. As the user scroll down, my idea is to simple move up my list which is clipped to the border of the listbox. I would do the same horizontally if some strings in the list are too long for the width.

    How can I do that?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Have a look a Gwen gui source - it does a nice job with glScissor for clipping

Posting Permissions

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