Package codeanticode.glgraphics

Examples of codeanticode.glgraphics.GLTexture


           
            PImage faceImage = parent.loadImage(folder + "/" +  filename.replaceAll(".ana", ".jpg"));
           
            logger.info("loading image: " + filename);
           
            texturePool.add(new GLTexture(parent));
           
            texturePool.get(texturePool.size() - 1).putPixelsIntoTexture(faceImage, values[0], values[1], values[2], values[3]);
         
            logger.info("texture added: " + filename);
           
View Full Code Here


    MONO_Y  = (int) config.getParameter("monoY") ;
   
   
    MONOLITO_RENDERER = new MonolitoRenderer(this, MONO_W, MONO_H);
   
    MONOLITO_TEXTURE = new GLTexture(this, MONO_W, MONO_H);
    MONOLITO = new GLTextureWindow(this, MONO_X, MONO_Y, MONO_W, MONO_H);
    MONOLITO.setTexture(MONOLITO_TEXTURE);
    MONOLITO.init();
   
    /////////////////////////////////////////////////////////////
View Full Code Here

  public Grid(PApplet parent, int w, int h){
   
    super(parent, w, h);
    // TODO implementar un mecanismo que me permita renderear en la textura
    // que despues uso para la grilla
    texture = new GLTexture(parent, parent.dataPath("textura_11.png"));
  }
View Full Code Here

    // OUTPUT
    /////////////////////////////////////////////////////

    logger.info("CREATING OUTPUT TEXTURE");

    OUTPUT_TEXTURE = new GLTexture(this, OUTPUT_W, OUTPUT_H);

    // a la ventana de salida yo solo le paso una textura
    // que funciona como canvas ya que luego
    // cada escena en particular me va a devolver una textura
    // de Opengl con la que puedo hacer distintas coas.
//    logger.info("CREATING OUTPUT WINDOW");
//
//    OUTPUT_WINDOW = new GLTextureWindow(this, OUTPUT_X, OUTPUT_Y, OUTPUT_W, OUTPUT_H);
//    OUTPUT_WINDOW.setTexture(OUTPUT_TEXTURE);
//    OUTPUT_WINDOW.init();
   
   
    // Loading required filters.
    logger.info("LOADING TEXTURE FILTERS");
    ns = new GLTextureFilter(this, "./data/shaders/nigth.xml");
    tex0 = new GLTexture(this, OUTPUT_W, OUTPUT_H, GLTexture.FLOAT);

   
    dream = new GLTextureFilter(this, "./data/shaders/dream.xml");
    nightShot = new GLTexture(this, OUTPUT_W, OUTPUT_H, GLTexture.FLOAT);
    ////////////////////////////////////////////////////
    // setup escene
    /////////////////////////////////////////////////////
    logger.info("CREATING ESCENE: ELASTIC GRID");
    serLiquido = new ElasticGrid( (PApplet) this, OUTPUT_W, OUTPUT_H);           
View Full Code Here

            scaledFaceImage.copy(faceImage, 0, 0, faceImage.width, faceImage.height,
                            0, 0, scaledFaceImage.width  , scaledFaceImage.height);
                                                //FaceImage
          //  texturePool.get(texturePool.size() - 1).putPixelsIntoTexture(faceImage, values[0], values[1], values[2], values[3]);
         
            GLTexture temp = new GLTexture(parent);
            temp.putPixelsIntoTexture(faceImage, values[0], values[1], values[2], values[3]);
            texturePool.add(temp);
           
            logger.info("texture added: " + filename);
           
         
View Full Code Here

    // OUTPUT
    /////////////////////////////////////////////////////

    logger.info("CREATING OUTPUT TEXTURE");

    OUTPUT_TEXTURE = new GLTexture(this, OUTPUT_W, OUTPUT_H);

    // a la ventana de salida yo solo le paso una textura
    // que funciona como canvas ya que luego
    // cada escena en particular me va a devolver una textura
    // de Opengl con la que puedo hacer distintas coas.
    //    logger.info("CREATING OUTPUT WINDOW");
    //
    //    OUTPUT_WINDOW = new GLTextureWindow(this, OUTPUT_X, OUTPUT_Y, OUTPUT_W, OUTPUT_H);
    //    OUTPUT_WINDOW.setTexture(OUTPUT_TEXTURE);
    //    OUTPUT_WINDOW.init();


    // Loading required filters.
    logger.info("LOADING TEXTURE FILTERS");
    ns = new GLTextureFilter(this, "./data/shaders/nigth.xml");
    tex0 = new GLTexture(this, OUTPUT_W, OUTPUT_H, GLTexture.FLOAT);


    dream = new GLTextureFilter(this, "./data/shaders/dream.xml");
    nightShot = new GLTexture(this, OUTPUT_W, OUTPUT_H, GLTexture.FLOAT);
    ////////////////////////////////////////////////////
    // setup escene
    /////////////////////////////////////////////////////
    logger.info("CREATING ESCENE: ELASTIC GRID");
    serLiquido = new ElasticGrid( (PApplet) this, OUTPUT_W, OUTPUT_H);           
View Full Code Here

TOP

Related Classes of codeanticode.glgraphics.GLTexture

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.