Package org.newdawn.slick.opengl

Examples of org.newdawn.slick.opengl.Texture.bind()


  }

  public boolean bindTexture(String path) {
    Texture tex = CustomTextureManager.getTextureFromPath(path);
    if (tex != null) {
      tex.bind();
    }
    return tex != null;
  }

  public boolean bindTexture(String addon, String path) {
View Full Code Here


  }

  public boolean bindTexture(String addon, String path) {
    Texture tex = CustomTextureManager.getTextureFromUrl(addon, path);
    if (tex != null) {
      tex.bind();
    }
    return tex != null;
  }
}
View Full Code Here

            GL11.glTranslated(-34f, -30f, 0); // Handles entity face offset for the square map
          } else {
            GL11.glTranslated(-32f, -32f, 0); // Handles entity face offset for the round map
          }
          GL11.glRotatef(-90, 0, 0, 1); // Handles entity face orientation
          tex.bind();
          drawOnMap();
          GL11.glPopMatrix();
        }
      }
    }
View Full Code Here

        if (lastBind != null && lastBind != texture) {
          GL.glEnd();
          lastBind = null;
        }
        if (lastBind == null) {
          texture.bind();
          GL.glBegin(SGL.GL_QUADS);
          lastBind = texture;
        }
        image.drawEmbedded(bounds.x + extraX, bounds.y + extraY, image.getWidth(), image.getHeight());
      }
View Full Code Here

        if (lastBind != null && lastBind != texture) {
          GL.glEnd();
          lastBind = null;
        }
        if (lastBind == null) {
          texture.bind();
          GL.glBegin(SGL.GL_QUADS);
          lastBind = texture;
        }

        image.drawEmbedded(bounds.x + extraX, bounds.y + extraY, image.getWidth(), image.getHeight(), font.getSize());
View Full Code Here

        if (lastBind != null && lastBind != texture) {
          GL.glEnd();
          lastBind = null;
        }
        if (lastBind == null) {
          texture.bind();
          GL.glBegin(SGL.GL_QUADS);
          lastBind = texture;
        }
        image.drawEmbedded(bounds.x + extraX, bounds.y + extraY, image.getWidth(), image.getHeight());
      }
View Full Code Here

        LSR.end();
       
        if (t == null) {
          TextureImpl.bindNone();
        } else {
          t.bind();
        }
    }

    /**
     * Draw the outline of the given shape.  Only the vertices are set. 
View Full Code Here

        GL.glEnd();
       
        if (t == null) {
          TextureImpl.bindNone();
        } else {
          t.bind();
        }
    }
   
    /**
     * Check there are enough points to fill
View Full Code Here

      });
       
        if (t == null) {
          TextureImpl.bindNone();
        } else {
          t.bind();
        }
    }
   
    /**
     * Draw the the given shape filled in.  Only the vertices are set. 
View Full Code Here

        float points[] = shape.getPoints();
       
        if (t == null) {
          TextureImpl.bindNone();
        } else {
          t.bind();
        }
    }
   
    /**
     * Draw the the given shape filled in with a texture.  Only the vertices are set. 
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.