code: public Integer getTextureMagFilter(AiTextureType type, int index) {
          checkTexRange(type, index);
  
          Property p = getProperty(PropertyKey.TEX_MAG_FILTER.m_key);
  
          if (null == p || null == p.getData()) {
              return (Integer) m_defaults.get(PropertyKey.TEX_MAG_FILTER);
          }
          Object rawValue = p.getData();
          if (rawValue instanceof java.nio.ByteBuffer)
          {
              java.nio.IntBuffer ibuf = ((java.nio.ByteBuffer) rawValue).asIntBuffer();
              return ibuf.get();
          }
          else
          {
              return (Integer) rawValue;
          }
      }
docs: Returns the texture magnification filter
  
  If missing, defaults to {@link GL_LINEAR }
  
  @param type the texture type
  @param index the index in the texture stack
  @return the texture magnification filter