Package mdesl.graphics

Examples of mdesl.graphics.Texture.bind()


//      view.rotate((float)Math.toRadians(rot+=0.5f), new Vector3f(0f,0f,1f));
//      proj = MathUtil.toOrtho2D(proj, 0, 0, Display.getWidth(), Display.getHeight());
      Matrix4f.mul(Matrix4f.transpose(proj, transpositionPool), view, projView);
      program.setUniformMatrix("u_projView", false, projView);
     
      t.bind();
      data.bind();
      data.draw(GL_TRIANGLE_STRIP, 0, w*h);
      data.unbind();
    }
  }
 
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.