Viewport

BlitzMax Forums/OpenGL Module/Viewport

Vertex(Posted 2006) [#1]
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


degac(Posted 2006) [#2]
it is what I see: a red screen with 2 black bands up and down...


Vertex(Posted 2006) [#3]
I see in fullscreen mode and window mode a red screen without black bands.

cu olli

Edit: Sorry, in window mode, I see the red box, and the top and bottom band is random(white with little pixels in other colors)


degac(Posted 2006) [#4]
? I don't know what the problem could be: this is my configuration AthlonXP1600+ GeForce4400Ti (latest driver), Bmax 1.14+MaxGUI, WinXP+sp2


Vertex(Posted 2006) [#5]
Yes, this is a bug of my graphics driver. On other machines, it is working perfectly.

cu olli