「MonoGame/クラスライブラリ/Microsoft.Xna.Framework名前空間」の版間の差分
imported>Administrator 編集の要約なし |
|||
| (2人の利用者による、間の3版が非表示) | |||
| 1行目: | 1行目: | ||
[[MonoGame/クラスライブラリ/Microsoft.Xna.Framework名前空間|Microsoft.Xna.Framework名前空間]]にあるもの。 | [[MonoGame/クラスライブラリ/Microsoft.Xna.Framework名前空間|Microsoft.Xna.Framework名前空間]]にあるもの。 | ||
| 8行目: | 6行目: | ||
! 名称 !! 概要 | ! 名称 !! 概要 | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/BoundingFrustumクラス|BoundingFrustumクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/BoundingFrustumクラス|BoundingFrustumクラス]] | ||
| 「[[視錐台]]」で[[ググれ]]。[[Unity]]の説明がわかりやすいぞ。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/Curveクラス|Curveクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Curveクラス|Curveクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/CurveKeyクラス|CurveKeyクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/CurveKeyクラス|CurveKeyクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/CurveKeyCollectionクラス|CurveKeyCollectionクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/CurveKeyCollectionクラス|CurveKeyCollectionクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/DrawableGameComponentクラス|DrawableGameComponentクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/DrawableGameComponentクラス|DrawableGameComponentクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/FrameworkDispatcherクラス|FrameworkDispatcherクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/FrameworkDispatcherクラス|FrameworkDispatcherクラス]] | ||
| フレームワーク内部でのイベント処理関連のヘルパークラス | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/Gameクラス|Gameクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Gameクラス|Gameクラス]] | ||
| こいつを継承してゲームを作る。いわゆるメイン関数に相当する最重要クラス。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameComponentクラス|GameComponentクラス]] | | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameComponentクラス|GameComponentクラス]] | ||
| ゲーム画面には色々なパーツがあるが、こいつを継承して作ると管理が楽になるらしい。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameComponentCollectionクラス|GameComponentCollectionクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameComponentCollectionクラス|GameComponentCollectionクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameComponentCollectionEventArgsクラス|GameComponentCollectionEventArgsクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameComponentCollectionEventArgsクラス|GameComponentCollectionEventArgsクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameServiceContainerクラス|GameServiceContainerクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameServiceContainerクラス|GameServiceContainerクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameTimeクラス|GameTimeクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameTimeクラス|GameTimeクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameUpdateRequiredExceptionクラス|GameUpdateRequiredExceptionクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameUpdateRequiredExceptionクラス|GameUpdateRequiredExceptionクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameWindowクラス|GameWindowクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameWindowクラス|GameWindowクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GraphicsDeviceInformationクラス|GraphicsDeviceInformationクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GraphicsDeviceInformationクラス|GraphicsDeviceInformationクラス]] | ||
| グラフィックスデバイスの作成に使用される設定情報。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GraphicsDeviceManagerクラス|GraphicsDeviceManagerクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GraphicsDeviceManagerクラス|GraphicsDeviceManagerクラス]] | ||
| グラフィックデバイスの初期化や制御に使用される。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/LaunchParametersクラス|LaunchParametersクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/LaunchParametersクラス|LaunchParametersクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/MathHelperクラス|MathHelperクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/MathHelperクラス|MathHelperクラス]] | ||
| ゲームでよく使われる定数や演算が用意されている便利クラス。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/PreparingDeviceSettingsEventArgsクラス|PreparingDeviceSettingsEventArgsクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/PreparingDeviceSettingsEventArgsクラス|PreparingDeviceSettingsEventArgsクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/TextInputEventArgsクラス|TextInputEventArgsクラス]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/TextInputEventArgsクラス|TextInputEventArgsクラス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/TitleContainerクラス|TitleContainerクラス]] | | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/TitleContainerクラス|TitleContainerクラス]] | ||
| コンテンツパイプライン外のファイルを開くのに使う。スマホゲームでよくある起動時にダウンロードした追加素材などを開いたりするのに便利だが、地味に制約も多いのでオープンソースの強みを活かしてこのクラス風の自前実装を作ったほうが捗る。 | |||
|} | |} | ||
== | == 構造体 == | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
! 名称 !! 概要 | ! 名称 !! 概要 | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/BoundingBox構造体|BoundingBox構造体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/BoundingSphere構造体|BoundingSphere構造体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Color構造体|Color構造体]] | ||
| 32ビットのパックカラー。ゲームといえば点順次。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Matrix構造体|Matrix構造体]] | ||
| 4x4の浮動小数点行列。拡大縮小や回転などの定番の行列計算も一発でやってくれる優れもの。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Plane構造体|Plane構造体]] | ||
| | | | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Point構造体|Point構造体]] | ||
| 2Dの点。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Quaternion構造体|Quaternion構造体]] | ||
| [[クォータニオン]]による3次元の回転の計算を効率的にやってくれる優れもの。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Ray構造体|Ray構造体]] | ||
| [[法線]]を飛ばしてくれる優れもの | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Rectangle構造体|Rectangle構造体]] | ||
| 2Dの四角形 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Vector2構造体|Vector2構造体]] | ||
| 2Dベクトル。 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Vector3構造体|Vector3構造体]] | ||
| 3Dベクトル | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/Vector4構造体|Vector4構造体]] | ||
| 4Dベクトル | |||
|} | |||
== インターフェイス == | |||
{| class="wikitable" | |||
|+ | |||
! 名称 !! 概要 | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/IDrawableインターフェイス|IDrawableインターフェイス]] || | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/IGameComponentインターフェイス|IGameComponentインターフェイス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/IGraphicsDeviceManagerインターフェイス|IGraphicsDeviceManagerインターフェイス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/IHasCallbackインターフェイス|IHasCallbackインターフェイス]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/IUpdateableインターフェイス|IUpdateableインターフェイス]] | ||
| | |||
|} | |} | ||
| 102行目: | 137行目: | ||
! 名称 !! 概要 | ! 名称 !! 概要 | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/ContainmentType列挙体|ContainmentType列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/ContainmentType列挙体|ContainmentType列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/CurveContinuity列挙体|CurveContinuity列挙体]] || | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/CurveContinuity列挙体|CurveContinuity列挙体]] || | ||
|- | |- | ||
| [[MonoGame/クラスライブラリ/CurveLoopType列挙体|CurveLoopType列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/CurveLoopType列挙体|CurveLoopType列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/CurveTangent列挙体|CurveTangent列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/CurveTangent列挙体|CurveTangent列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/DisplayOrientation列挙体|DisplayOrientation列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/DisplayOrientation列挙体|DisplayOrientation列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/GameRunBehavior列挙体|GameRunBehavior列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/GameRunBehavior列挙体|GameRunBehavior列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/PlaneIntersectionType列挙体|PlaneIntersectionType列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/PlaneIntersectionType列挙体|PlaneIntersectionType列挙体]] | ||
| | |||
|- | |- | ||
| [[MonoGame/クラスライブラリ/PlayerIndex列挙体|PlayerIndex列挙体]] | ! style="white-space:nowrap;text-align:left" | [[MonoGame/クラスライブラリ/PlayerIndex列挙体|PlayerIndex列挙体]] | ||
| | |||
|} | |} | ||
[[category: MonoGame]] | [[category: MonoGame]] | ||
2017年11月2日 (木) 13:36時点における最新版
Microsoft.Xna.Framework名前空間にあるもの。
クラス[編集 | ソースを編集]
| 名称 | 概要 |
|---|---|
| BoundingFrustumクラス | 「視錐台」でググれ。Unityの説明がわかりやすいぞ。 |
| Curveクラス | |
| CurveKeyクラス | |
| CurveKeyCollectionクラス | |
| DrawableGameComponentクラス | |
| FrameworkDispatcherクラス | フレームワーク内部でのイベント処理関連のヘルパークラス |
| Gameクラス | こいつを継承してゲームを作る。いわゆるメイン関数に相当する最重要クラス。 |
| GameComponentクラス | ゲーム画面には色々なパーツがあるが、こいつを継承して作ると管理が楽になるらしい。 |
| GameComponentCollectionクラス | |
| GameComponentCollectionEventArgsクラス | |
| GameServiceContainerクラス | |
| GameTimeクラス | |
| GameUpdateRequiredExceptionクラス | |
| GameWindowクラス | |
| GraphicsDeviceInformationクラス | グラフィックスデバイスの作成に使用される設定情報。 |
| GraphicsDeviceManagerクラス | グラフィックデバイスの初期化や制御に使用される。 |
| LaunchParametersクラス | |
| MathHelperクラス | ゲームでよく使われる定数や演算が用意されている便利クラス。 |
| PreparingDeviceSettingsEventArgsクラス | |
| TextInputEventArgsクラス | |
| TitleContainerクラス | コンテンツパイプライン外のファイルを開くのに使う。スマホゲームでよくある起動時にダウンロードした追加素材などを開いたりするのに便利だが、地味に制約も多いのでオープンソースの強みを活かしてこのクラス風の自前実装を作ったほうが捗る。 |
構造体[編集 | ソースを編集]
| 名称 | 概要 |
|---|---|
| BoundingBox構造体 | |
| BoundingSphere構造体 | |
| Color構造体 | 32ビットのパックカラー。ゲームといえば点順次。 |
| Matrix構造体 | 4x4の浮動小数点行列。拡大縮小や回転などの定番の行列計算も一発でやってくれる優れもの。 |
| Plane構造体 | |
| Point構造体 | 2Dの点。 |
| Quaternion構造体 | クォータニオンによる3次元の回転の計算を効率的にやってくれる優れもの。 |
| Ray構造体 | 法線を飛ばしてくれる優れもの |
| Rectangle構造体 | 2Dの四角形 |
| Vector2構造体 | 2Dベクトル。 |
| Vector3構造体 | 3Dベクトル |
| Vector4構造体 | 4Dベクトル |
インターフェイス[編集 | ソースを編集]
| 名称 | 概要 |
|---|---|
| IDrawableインターフェイス | |
| IGameComponentインターフェイス | |
| IGraphicsDeviceManagerインターフェイス | |
| IHasCallbackインターフェイス | |
| IUpdateableインターフェイス |
列挙体[編集 | ソースを編集]
| 名称 | 概要 |
|---|---|
| ContainmentType列挙体 | |
| CurveContinuity列挙体 | |
| CurveLoopType列挙体 | |
| CurveTangent列挙体 | |
| DisplayOrientation列挙体 | |
| GameRunBehavior列挙体 | |
| PlaneIntersectionType列挙体 | |
| PlayerIndex列挙体 |