kabutor wrote:

Hi

I know its not much soya related, but Im stuck with  a silly thing.

I render a sqaure with a
                       opengl.glEnable(opengl.GL_BLEND)
                       opengl.glColor4f (*self.color)
                       opengl.glBegin(opengl.GL_QUADS)
                       opengl.glVertex2i(self.left_100, self.top_100)
opengl.glVertex2i(self.left_100, self.top_100 + self.height_100) opengl.glVertex2i(self.left_100 + self.width_100, self.top_100 + self.height_100) opengl.glVertex2i(self.left_100 + self.width_100, self.top_100)


First of all, you need to have a opengl.glEnd after you have drawn all of the vertexes.

How can I make that square dissapear? I try with opengl.glClear and openGl.Disable, but seems that are not the proper commands, and obviously my opengl knowledge is zero.


What exactly do you mean by disappear? If you don't want it to be drawn, simply don't draw it.

BTW, if you don't know opengl, it would probably be easier for you to use soya.Face. (Take a look at tutorial/modeling-1.py to see how to use it.)

MWM

Reply via email to