3

I have a rectangle that i need to clip (i mean clip pixels inside my area, not outside). glScissor works almost like i want, but as i said, i need to clip pixels INSIDE my area, but scissor works vice versa. Does glScissor can make thing that i need, or GL has other methods?

Here example what i need to do (I drew picture for example):

drawing

1
  • The efficient way would be via GL_NV_scissor_exclusive, but this one is nvidia-specific and not very widely supported in general, but GL_EXT_window_rectangles also offers such a functionality, and is more widely available. Commented Jun 13, 2022 at 16:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.