InlineUniform.kl

Types

InlineUniform (struct)

バージョン 1.12.0 で追加.

The InlineUniform represents a single value for an InlineMaterial. Essentially the InlineUniform is a variant storing all possible values as well as a type.

/*
** Example: InlineUniform
*/

require InlineDrawing;
  
operator entry() {

      InlineUniform u_color('u_color', Color(1.0, 0.0, 0.0));
      u_color.setOptional();
      report(u_color.getColor());
  
}

/*
** Output:

{r:+1.0,g:+0.0,b:+0.0,a:+1.0}

*/

Methods

  InlineUniform ( in InlineUniform other )
  InlineUniform ( in String name, in Color value )
  InlineUniform ( in String name, in Float32 value )
  InlineUniform ( in String name, in InlineTexture value )
  InlineUniform ( in String name, in Integer value )
  InlineUniform ( in String name, in Mat33 value )
  InlineUniform ( in String name, in Mat44 value )
  InlineUniform ( in String name, in Quat value )
  InlineUniform ( in String name, in Vec2 value )
  InlineUniform ( in String name, in Vec3 value )
  InlineUniform ( in String name, in Vec4 value )
  InlineUniform ()
InlineUniform clone ? ()
Color getColor ? ()
Float32 getFloat32 ? ()
InlineTexture getInlineTexture ? ()
Integer getInteger ? ()
String getKLTypeName ? ()
Mat33 getMat33 ? ()
Mat44 getMat44 ? ()
String getName ? ()
Quat getQuat ? ()
Integer getType ? ()
Vec2 getVec2 ? ()
Vec3 getVec3 ? ()
Vec4 getVec4 ? ()
Boolean isOptional ? ()
  setOptional ! ()