次のコード行を見つけました:this.red = (float)(par4 >> 16 & 255) / 255.0F;
ここで red は として宣言されていfloat
ます。
特に完全なコードは次のとおりであるため、私はそれが何をするのか理解しようとしています:
this.red = (float)(par4 >> 16 & 255) / 255.0F;
this.blue = (float)(par4 >> 8 & 255) / 255.0F;
this.green = (float)(par4 & 255) / 255.0F;
this.alpha = (float)(par4 >> 24 & 255) / 255.0F;
GL11.glColor4f(this.red, this.blue, this.green, this.alpha);
したがって、これは int ( par4
) のさまざまな場所を使用してテキストに色を付けていると推測しています。この場合par4
は等しい。553648127
これらの 4 行、特に ? は何を意味し>> 16 & 25
ますか?