Results 1 to 2 of 2

Thread: 2d clippling?

  1. #1

    2d clippling?

    I'm trying to make a simple 2d game and I'm having a problem with clipping, using glortho. I have three rectangles: red, green, blue.

    How can I give them a z-order and have them clip each other without using 3d perspective? I'd like to use real clipping and not simply drawing each one on top of the last.

  2. #2

    Re: 2d clippling?

    never mind, i now understand the z-buffer

Similar Threads

  1. Cohen-Satherlend Clippling algorithm and screen XY
    By Vadimgl in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-04-2010, 08:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean