I thought, the opengl scissor test defines an rectangle(=window), in this opengl can only draw.
So if I define the scissor window 0, 40, 640, 400 the top and buttom bar can't be manipulate by opengl?
SuperStrict
Import Brl.GLGraphics
GLGraphics(640, 480, 32)
glEnable(GL_SCISSOR_TEST)
glScissor(0, 0, 640, 480)
glClearColor(0.0, 0.0, 0.0, 1.0)
glClear(GL_COLOR_BUFFER_BIT)
Flip()
glScissor(0, 40, 640, 400)
glClearColor(1.0, 0.0, 0.0, 1.0)
glClear(GL_COLOR_BUFFER_BIT)
Flip()
WaitKey()
EndGraphics()
End
But what is with this code? There no black bars. I clear the full screen(640x480) with black, and than the smaller window(640x400) with red.
cu olli
|