Examples of SGL


Examples of org.newdawn.slick.opengl.renderer.SGL

  public void render(ActorSet actorSet, Graphics g) {
    // ��� actor �������� view ����Ҵ
    Actor all[] = actorSet.toActorArray();
    vrect.setBounds(x, y, width, height);
    n = 0;
    SGL GL = Renderer.get();
    GL.glPushMatrix();
    g.setClip((int) screenX, (int) screenY, (int) width,
        (int) height);
    g.translate(screenX - x, screenY - y);
    for (int i = 0; i < all.length; i++) {
      if (all[i].isDead())
        continue;     
      if (all[i].isVisible() && isInView(all[i])) {             
        all[i].render(g);
        n++;
      }
    }
    g.clearClip();
    GL.glPopMatrix();
  }
View Full Code Here

Examples of org.newdawn.slick.opengl.renderer.SGL

  public void paint(Graphics g) {

  }

  public void render(Graphics g) {
    SGL GL = Renderer.get();

    if (bgColor != null) {
      g.setColor(bgColor);
      g.fillRect(screenX, screenY, width, height);
    }
    GL.glPushMatrix();
    g.setClip((int) screenX, (int) screenY, (int) width, (int) height);
    g.translate(screenX - x, screenY - y);
    paint(g);
    g.clearClip();
    GL.glPopMatrix();

    if (renderSet != null)
      render(renderSet, g);

    if (borderColor != null) {
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.