SetMaterialTexture method

  1. @override
void SetMaterialTexture(
  1. StructPointer<MaterialD> material,
  2. int mapType,
  3. TextureD texture
)
override

Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)

Implementation

@override
void SetMaterialTexture(
  StructPointer<MaterialD> material,
  int mapType,
  TextureD texture,
) => _ffi.SetMaterialTexture(
  material.asNativePointer(),
  mapType,
  $.Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
);