Package com.peterhi.ui.gl

Examples of com.peterhi.ui.gl.GLVertexShader


  protected void onInit(GLAutoDrawable drawable) {
    try {
      GL gl = drawable.getGL();
      URL vertUrl = RT.getClassResource(getClass(), ".vertex");
      URL fragUrl = RT.getClassResource(getClass(), ".fragment");
      GLVertexShader vertex = new GLVertexShader(gl, UI.getText(vertUrl));
      GLFragmentShader fragment = new GLFragmentShader(gl, UI.getText(fragUrl));
     
      program = new GLShaderProgram(gl);
      program.addShader(vertex);
      program.addShader(fragment);
     
      vertex.compile();
      fragment.compile();
      program.link();
      program.validate();
     
      buffer = new GLVertexBuffer(gl);
View Full Code Here


  protected void onInit(GLAutoDrawable drawable) {
    try {
      GL gl = drawable.getGL();
      URL vertUrl = RT.getClassResource(getClass(), ".vertex");
      URL fragUrl = RT.getClassResource(getClass(), ".fragment");
      GLVertexShader vertex = new GLVertexShader(gl, UI.getText(vertUrl));
      GLFragmentShader fragment = new GLFragmentShader(gl, UI.getText(fragUrl));

      program = new GLShaderProgram(gl);
      program.addShader(vertex);
      program.addShader(fragment);
     
      vertex.compile();
      fragment.compile();
      program.link();
      program.validate();
     
      buffer = new GLVertexBuffer(gl, data);
View Full Code Here

  protected void onInit(GLAutoDrawable drawable) {
    try {
      GL gl = drawable.getGL();
      URL vertUrl = RT.getClassResource(getClass(), ".vertex");
      URL fragUrl = RT.getClassResource(getClass(), ".fragment");
      GLVertexShader vertex = new GLVertexShader(gl, UI.getText(vertUrl));
      GLFragmentShader fragment = new GLFragmentShader(gl, UI.getText(fragUrl));
     
      program = new GLShaderProgram(gl);
      program.addShader(vertex);
      program.addShader(fragment);
     
      vertex.compile();
      fragment.compile();
      program.link();
      program.validate();
     
      buffer = new GLVertexBuffer(gl);
View Full Code Here

TOP

Related Classes of com.peterhi.ui.gl.GLVertexShader

Copyright © 2018 www.massapicom. 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.