InlineFileBasedTexture (object)

バージョン 1.12.0 で追加.

The InlineFileBasedTexture uses the OpenImageInput to load a texture from a file. The texture can then be used inside an InlineUniform to drive an InlineShader or InlineMaterial.

InlineFileBasedTexture InlineFileBasedTexture InlineFileBasedTexture InlineTexture InlineTexture InlineFileBasedTexture->InlineTexture InlineEntityBase InlineEntityBase InlineTexture->InlineEntityBase InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: InlineFileBasedTexture
*/

require InlineDrawing;
  
operator entry() {

  InlineDrawing draw = OGLInlineDrawing();
  
  // load the texture and register it
  InlineFileBasedTexture texture = draw.registerTexture(InlineFileBasedTexture('diffuse_frame0.png'));
  
  // reload the texture later from a different frame
  texture.open('diffuse_frame1.png');
  
}

/*
** Output:


*/

Methods in detail

InlineFileBasedTexture ( in InlineFileBasedTexture other )

copy constructor


InlineFileBasedTexture ( in String fileName )

standard constructor with a filename


InlineFileBasedTexture ()

standard constructor


InlineFileBasedTexture InlineFileBasedTexture.clone? ()

clone method


InlineFileBasedTexture.open! ( in String fileName )

loads the texture from a file