Examples of CGparameter


Examples of com.sun.opengl.cg.CGparameter

   *
   * @param name String
   * @param tex GLTexture
   */              
  public void setTexParameter(String name, GLTexture tex) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgGLSetTextureParameter(p, tex.getTextureID());
  }
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   *
   * @param name String
   * @param x int
   */             
  public void setIntParameter(String name, int x) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgSetParameter1i(p, x);   
  }
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   *
   * @param name String
   * @param x float
   */
  public void setFloatParameter(String name, float x) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgSetParameter1f(p, x);   
  }
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * @param name String
   * @param x float
   * @param y float         
   */   
  public void setVecParameter(String name, float x, float y) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgSetParameter2f(p, x, y);   
 
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * @param x float
   * @param y float
   * @param z float   
   */ 
  public void setVecParameter(String name, float x, float y, float z) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgSetParameter3f(p, x, y, z);   
 
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * @param y float
   * @param z float
   * @param w float
   */   
  public void setVecParameter(String name, float x, float y, float z, float w) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) CgGL.cgSetParameter4f(p, x, y, z, w);
 
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   * @param m00 float
   *        ...
   */   
  public void setMatParameter(String name,  float m00, float m01,
                                            float m10, float m11) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) {
      float[] mat = new float[4];
      mat[0] = m00;
      mat[1] = m10;
      mat[4] = m01;
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   *        ...
   */     
  public void setMatParameter(String name, float m00, float m01, float m02,
                                           float m10, float m11, float m12,
                                           float m20, float m21, float m22) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) {
      float[] mat = new float[9];
      mat[0] = m00;
      mat[1] = m10;
      mat[2] = m20;
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

   */     
  public void setMatParameter(String name, float m00, float m01, float m02, float m03,
                                           float m10, float m11, float m12, float m13,
                                           float m20, float m21, float m22, float m23,
                                           float m30, float m31, float m32, float m33) {
    CGparameter p = CgGL.cgGetNamedParameter(currProgram, name);
    if (p != null) {
      float[] mat = new float[16];     
      mat[0] = m00;
      mat[1] = m10;
      mat[2] = m20;
View Full Code Here

Examples of com.sun.opengl.cg.CGparameter

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