Examples of CGparameter


Examples of com.sun.opengl.cg.CGparameter

   * Copies the projection matrix from OpenGL to parameter name in the shader.
   *
   * @param name String
   */         
  public void setProjectionMatrix(String name) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgGLSetStateMatrixParameter(p, CgGL.CG_GL_PROJECTION_MATRIX, CgGL.CG_GL_MATRIX_IDENTITY);
 
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * Copies the modelview-projection matrix from OpenGL to parameter name in the shader.
   *
   * @param name String
   */           
  public void setModelviewProjectionMatrix(String name) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgGLSetStateMatrixParameter(p, CgGL.CG_GL_MODELVIEW_PROJECTION_MATRIX, CgGL.CG_GL_MATRIX_IDENTITY);
  }
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * Copies the texture matrix from OpenGL to parameter name in the shader.
   *
   * @param name String
   */ 
  public void setTextureMatrix(String name) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgGLSetStateMatrixParameter(p, CgGL.CG_GL_TEXTURE_MATRIX, CgGL.CG_GL_MATRIX_IDENTITY);
 
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.