Texture2D Constructor (Int32, Int32, TextureFormat, Boolean) |
サイズを指定して2Dテクスチャを作成します。
Namespace: LuminoAssembly: LuminoDotNet (in LuminoDotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Texture2D(
int width,
int height,
TextureFormat format = TextureFormat.A8R8G8B8,
bool mipmap = false
)
Public Sub New (
width As Integer,
height As Integer,
Optional format As TextureFormat = TextureFormat.A8R8G8B8,
Optional mipmap As Boolean = false
)
public:
Texture2D(
int width,
int height,
TextureFormat format = TextureFormat::A8R8G8B8,
bool mipmap = false
)
new :
width : int *
height : int *
?format : TextureFormat *
?mipmap : bool
(* Defaults:
let _format = defaultArg format TextureFormat.A8R8G8B8
let _mipmap = defaultArg mipmap false
*)
-> Texture2D
Parameters
- width
- Type: SystemInt32
テクスチャの幅 (ピクセル単位) - height
- Type: SystemInt32
テクスチャの高さ (ピクセル単位) - format (Optional)
- Type: LuminoTextureFormat
テクスチャのピクセルフォーマット - mipmap (Optional)
- Type: SystemBoolean
ミップマップの有無
See Also