Examples of glPopMatrix()


Examples of javax.media.opengl.GL2.glPopMatrix()

      float temp = x;
      x = c * x - s * y;
      y = s * temp + c * y;
    }
    gl.glEnd();
    gl.glPopMatrix();
  }

  @Override
  public void drawCircle(Vec2 center, float radius, Vec2 axis, Color3f color) {
    GL2 gl = panel.getGL().getGL2();
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

    gl.glEnd();
    gl.glBegin(GL2.GL_LINES);
    gl.glVertex3f(cx, cy, 0);
    gl.glVertex3f(cx + axis.x * radius, cy + axis.y * radius, 0);
    gl.glEnd();
    gl.glPopMatrix();
  }

  @Override
  public void drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) {
    GL2 gl = panel.getGL().getGL2();
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

    gl.glEnd();
    gl.glBegin(GL2.GL_LINES);
    gl.glVertex3f(cx, cy, 0);
    gl.glVertex3f(cx + axis.x * radius, cy + axis.y * radius, 0);
    gl.glEnd();
    gl.glPopMatrix();
  }

  @Override
  public void drawSegment(Vec2 p1, Vec2 p2, Color3f color) {
    GL2 gl = panel.getGL().getGL2();
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

    gl.glBegin(GL2.GL_LINES);
    gl.glColor3f(color.x, color.y, color.z);
    gl.glVertex3f(p1.x, p1.y, 0);
    gl.glVertex3f(p2.x, p2.y, 0);
    gl.glEnd();
    gl.glPopMatrix();
  }

  @Override
  public void drawParticles(Vec2[] centers, float radius, ParticleColor[] colors, int count) {
    GL2 gl = panel.getGL().getGL2();
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

        x = c * x - s * y;
        y = s * temp + c * y;
      }
      gl.glEnd();
    }
    gl.glPopMatrix();
  }


  @Override
  public void drawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors, int count) {
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

        x = c * x - s * y;
        y = s * temp + c * y;
      }
      gl.glEnd();
    }
    gl.glPopMatrix();
  }

  private final Vec2 temp = new Vec2();
  private final Vec2 temp2 = new Vec2();

View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

    for (int i = 0; i < vertexCount; i++) {
      Vec2 v = vertices[i];
      gl.glVertex2f(v.x, v.y);
    }
    gl.glEnd();
    gl.glPopMatrix();
  }

  @Override
  public void drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color) {
    GL2 gl = panel.getGL().getGL2();
View Full Code Here

Examples of javax.media.opengl.GL2.glPopMatrix()

            renderTool(drawable);
        }
       
        gl.glDisable(GL.GL_DEPTH_TEST);

        gl.glPopMatrix();
       
        this.fpsCounter.draw();
        //this(drawable, new Font("SansSerif", Font.BOLD, 12));
       
        update();
View Full Code Here

Examples of javax.media.opengl.GL2ES1.glPopMatrix()

    }

    @Override
    public void popMatrix() {
        final GL2ES1 gl = GLContext.getCurrentGL().getGL2ES1();
        gl.glPopMatrix();
    }

    @Override
    public void multMatrix(final FloatBuffer fb) {
        final GL2ES1 gl = GLContext.getCurrentGL().getGL2ES1();
View Full Code Here

Examples of org.newdawn.slick.opengl.renderer.SGL.glPopMatrix()

        all[i].render(g);
        n++;
      }
    }
    g.clearClip();
    GL.glPopMatrix();
  }

  /**
   * ����Ѻ update �����ŵ������
   *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.