D2D1_SPOTSPECULAR_PROP
列挙型メンバー 10
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION | 0 | 0x0 | 点光源のライト位置です。このプロパティは (x, y, z) として定義される D2D1_VECTOR_3F です。 単位はデバイス非依存ピクセル (DIP) で、値に上限や下限はありません。 型は D2D1_VECTOR_3F です。 既定値は {0.0f, 0.0f, 0.0f} です。 |
| D2D1_SPOTSPECULAR_PROP_POINTS_AT | 1 | 0x1 | スポットライトが向けられる位置です。このプロパティは – (x, y, z) を持つ D2D1_VECTOR_3F として公開されます。 単位は DIP で、値に上限や下限はありません。 型は D2D1_VECTOR_3F です。 既定値は {0.0f, 0.0f, 0.0f} です。 |
| D2D1_SPOTSPECULAR_PROP_FOCUS | 2 | 0x2 | スポットライトの焦点です。このプロパティは単位を持たず、0 から 200 の範囲で定義されます。 型は FLOAT です。 既定値は 1.0f です。 |
| D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE | 3 | 0x3 | 光が投射される領域を制限する円錐の角度です。円錐の外側には光は投射されません。 制限円錐角度は、スポットライトの軸 (LightPosition プロパティと PointsAt プロパティの間の軸) とスポットライトの円錐との間の角度です。 このプロパティは度単位で定義され、0 度から 90 度の範囲でなければなりません。 型は FLOAT です。 既定値は 90.0f です。 |
| D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT | 4 | 0x4 | Phong 照明方程式における鏡面反射項の指数です。値が大きいほど、反射性の高い表面になります。この値は単位を持たず、1.0 から 128 の範囲でなければなりません。 型は FLOAT です。 既定値は 1.0f です。 |
| D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT | 5 | 0x5 | 入射光に対する鏡面反射の比率です。値は単位を持たず、0 から 10,000 の範囲でなければなりません。 型は FLOAT です。 既定値は 1.0f です。 |
| D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE | 6 | 0x6 | ハイトマップを生成するための Z 方向のスケール係数です。値は単位を持たず、0 から 10,000 の範囲でなければなりません。 型は FLOAT です。 既定値は 1.0f です。 |
| D2D1_SPOTSPECULAR_PROP_COLOR | 7 | 0x7 | 入射光の色です。このプロパティは Vector 3 – (R, G, B) として公開され、LR、LG、LB の計算に使用されます。 型は D2D1_VECTOR_3F です。 既定値は {1.0f, 1.0f, 1.0f} です。 |
| D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH | 8 | 0x8 | X 方向および Y 方向の表面法線を生成するために使用される Sobel カーネルの要素のサイズです。このプロパティは、Sobel 勾配の dx および dy の値に対応します。 このプロパティは D2D1_VECTOR_2F (Kernel Unit Length X, Kernel Unit Length Y) であり、(DIP/カーネル単位) で定義されます。 このエフェクトは、カーネル要素のサイズに合わせてビットマップをスケーリングするために、バイリニア補間を使用します。 型は D2D1_VECTOR_2F です。 既定値は {1.0f, 1.0f} です。 |
| D2D1_SPOTSPECULAR_PROP_SCALE_MODE | 9 | 0x9 | エフェクトが画像を対応するカーネル単位長にスケーリングする際に使用する補間モードです。品質と速度が異なる 6 つのスケールモードがあります。 型は D2D1_SPOTSPECULAR_SCALE_MODE です。 既定値は D2D1_SPOTSPECULAR_SCALE_MODE_LINEAR です。 |
公式ドキュメント
Spot-specular ライティング効果のプロパティの識別子です。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum D2D1_SPOTSPECULAR_PROP : int {
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0,
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1,
D2D1_SPOTSPECULAR_PROP_FOCUS = 2,
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3,
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4,
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5,
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6,
D2D1_SPOTSPECULAR_PROP_COLOR = 7,
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8,
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9
} D2D1_SPOTSPECULAR_PROP;public enum D2D1_SPOTSPECULAR_PROP : int
{
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0,
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1,
D2D1_SPOTSPECULAR_PROP_FOCUS = 2,
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3,
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4,
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5,
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6,
D2D1_SPOTSPECULAR_PROP_COLOR = 7,
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8,
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9,
}Public Enum D2D1_SPOTSPECULAR_PROP As Integer
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1
D2D1_SPOTSPECULAR_PROP_FOCUS = 2
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6
D2D1_SPOTSPECULAR_PROP_COLOR = 7
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9
End Enumimport enum
class D2D1_SPOTSPECULAR_PROP(enum.IntEnum):
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1
D2D1_SPOTSPECULAR_PROP_FOCUS = 2
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6
D2D1_SPOTSPECULAR_PROP_COLOR = 7
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9// D2D1_SPOTSPECULAR_PROP
pub const D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION: i32 = 0;
pub const D2D1_SPOTSPECULAR_PROP_POINTS_AT: i32 = 1;
pub const D2D1_SPOTSPECULAR_PROP_FOCUS: i32 = 2;
pub const D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE: i32 = 3;
pub const D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT: i32 = 4;
pub const D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT: i32 = 5;
pub const D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE: i32 = 6;
pub const D2D1_SPOTSPECULAR_PROP_COLOR: i32 = 7;
pub const D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH: i32 = 8;
pub const D2D1_SPOTSPECULAR_PROP_SCALE_MODE: i32 = 9;// D2D1_SPOTSPECULAR_PROP
const (
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION int32 = 0
D2D1_SPOTSPECULAR_PROP_POINTS_AT int32 = 1
D2D1_SPOTSPECULAR_PROP_FOCUS int32 = 2
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE int32 = 3
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT int32 = 4
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT int32 = 5
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE int32 = 6
D2D1_SPOTSPECULAR_PROP_COLOR int32 = 7
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH int32 = 8
D2D1_SPOTSPECULAR_PROP_SCALE_MODE int32 = 9
)const
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0;
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1;
D2D1_SPOTSPECULAR_PROP_FOCUS = 2;
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3;
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4;
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5;
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6;
D2D1_SPOTSPECULAR_PROP_COLOR = 7;
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8;
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9;// D2D1_SPOTSPECULAR_PROP
pub const D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION: i32 = 0;
pub const D2D1_SPOTSPECULAR_PROP_POINTS_AT: i32 = 1;
pub const D2D1_SPOTSPECULAR_PROP_FOCUS: i32 = 2;
pub const D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE: i32 = 3;
pub const D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT: i32 = 4;
pub const D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT: i32 = 5;
pub const D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE: i32 = 6;
pub const D2D1_SPOTSPECULAR_PROP_COLOR: i32 = 7;
pub const D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH: i32 = 8;
pub const D2D1_SPOTSPECULAR_PROP_SCALE_MODE: i32 = 9;const
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION* = 0
D2D1_SPOTSPECULAR_PROP_POINTS_AT* = 1
D2D1_SPOTSPECULAR_PROP_FOCUS* = 2
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE* = 3
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT* = 4
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT* = 5
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE* = 6
D2D1_SPOTSPECULAR_PROP_COLOR* = 7
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH* = 8
D2D1_SPOTSPECULAR_PROP_SCALE_MODE* = 9enum D2D1_SPOTSPECULAR_PROP : int {
D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0,
D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1,
D2D1_SPOTSPECULAR_PROP_FOCUS = 2,
D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3,
D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4,
D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5,
D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6,
D2D1_SPOTSPECULAR_PROP_COLOR = 7,
D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8,
D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9,
}#define global D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION 0x0
#define global D2D1_SPOTSPECULAR_PROP_POINTS_AT 0x1
#define global D2D1_SPOTSPECULAR_PROP_FOCUS 0x2
#define global D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE 0x3
#define global D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT 0x4
#define global D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT 0x5
#define global D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE 0x6
#define global D2D1_SPOTSPECULAR_PROP_COLOR 0x7
#define global D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH 0x8
#define global D2D1_SPOTSPECULAR_PROP_SCALE_MODE 0x9