Home | History | Annotate | Download | only in materials
      1 package com.jme3.scene.plugins.blender.materials;
      2 
      3 /**
      4  * An interface used in calculating alpha mask during particles' texture calculations.
      5  * @author Marcin Roguski (Kaelthas)
      6  */
      7 /*package*/ interface IAlphaMask {
      8 	/**
      9 	 * This method sets the size of the texture's image.
     10 	 * @param width
     11 	 *        the width of the image
     12 	 * @param height
     13 	 *        the height of the image
     14 	 */
     15 	void setImageSize(int width, int height);
     16 
     17 	/**
     18 	 * This method returns the alpha value for the specified texture position.
     19 	 * @param x
     20 	 *        the X coordinate of the texture position
     21 	 * @param y
     22 	 *        the Y coordinate of the texture position
     23 	 * @return the alpha value for the specified texture position
     24 	 */
     25 	byte getAlpha(float x, float y);
     26 }