glEnd();
}
-void OpenGL$GLPixelBuffer::fillRect(jint x1, jint y1, jint x2, jint y2,jint color) {
- activateContext();
- setColor(color);
- glBegin(GL_QUADS);
- glVertex3f(x1,y2,0.0f );
- glVertex3f(x2,y2,0.0f );
- glVertex3f(x2,y1,0.0f );
- glVertex3f(x1,y1,0.0f );
- glEnd();
-}
-
void OpenGL$GLPixelBuffer::setClip(jint x1, jint y1, jint x2, jint y2) {
//fprintf(stderr,"setClip: %d %d %d %d\n",x1,y1,x2,y2);
if(x1==0 && y1==0 && x2==width && y2==height) {