Package sprites.base.ogl

Examples of sprites.base.ogl.Shader


   
    this.config.getRenderingCallback().init(this);
  }
 
  private void initProgram(){
    Shader spriteVS = loadShader("res/shader/sprite_vs.glsl" , GL4.GL_VERTEX_SHADER);
    Shader spriteFS = loadShader("res/shader/sprite_hue_fs.glsl", GL4.GL_FRAGMENT_SHADER);
    this.defaultProgram = new ShaderProgram(spriteVS, spriteFS);
    this.defaultProgram.linkProgram(this.gl);
  }
View Full Code Here


    } catch (IOException e){
      e.printStackTrace();
      System.exit(-1);
    }
   
    Shader shader = new Shader(string, shaderType);
//DEBUG  System.out.println("New Shader ID: "+ shaderID);
    shader.compileShader(this.gl);
   
    return shader;
  }
View Full Code Here

TOP

Related Classes of sprites.base.ogl.Shader

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.