コード例 #1
0
 internal static void RebindTexture(ITexture texture)
 {
     for (var slot = 0; slot < textures.Length; slot++)
     {
         if (textures[slot] == texture)
         {
             Context.SetTexture(slot, texture?.GetPlatformTexture());
         }
     }
 }
コード例 #2
0
 public static void SetTexture(int slot, ITexture texture)
 {
     Context.SetTexture(slot, texture?.GetPlatformTexture());
     textures[slot] = texture;
 }