<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=MonoGame%2F%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%2FVertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93</id>
	<title>MonoGame/クラスライブラリ/VertexPositionColor構造体 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=MonoGame%2F%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%2FVertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;action=history"/>
	<updated>2026-06-05T02:18:21Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9106&amp;oldid=prev</id>
		<title>imported&gt;Administrator: /* 実装例 */</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9106&amp;oldid=prev"/>
		<updated>2017-11-06T11:28:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;実装例&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2017年11月6日 (月) 11:28時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l80&quot;&gt;80行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;80行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;この例ではVertexBufferを作らずにDrawUserPrimitivesメソッドで描画している。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;この例ではVertexBufferを作らずにDrawUserPrimitivesメソッドで描画している。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;VertexBufferを作りDrawPrimitivesメソッドで描画しても同じ結果になる。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;VertexBufferを作りDrawPrimitivesメソッドで描画しても同じ結果になる。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;どっちが良いのかは知らん。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;どちらも[[頂点バッファ]]だけでの描画なのでどちらが優れているかは知らん。可能であれば[[インデックスバッファ]]を使った描画の方が良いと思うぞ。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;BasicEffectのVertexColorEnabledプロパティで色付けを有効にしている。これを設定しないと真っ白になり、設定すると頂点カラー間でグラデーションが掛かる。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;BasicEffectのVertexColorEnabledプロパティで色付けを有効にしている。これを設定しないと真っ白になり、設定すると頂点カラー間でグラデーションが掛かる。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key monobook-mw_:diff:1.41:old-9105:rev-9106:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Administrator</name></author>
	</entry>
	<entry>
		<id>https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9105&amp;oldid=prev</id>
		<title>imported&gt;Administrator: /* 実装例 */</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9105&amp;oldid=prev"/>
		<updated>2017-11-06T11:26:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;実装例&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2017年11月6日 (月) 11:26時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;111行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;111行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         protected override void Initialize()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         protected override void Initialize()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            // マウスカーソルを表示する&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            this.IsMouseVisible = true;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             // ウインドウサイズを変更する&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             // ウインドウサイズを変更する&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             _graphics.PreferredBackBufferWidth = 800;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             _graphics.PreferredBackBufferWidth = 800;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l172&quot;&gt;172行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;175行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     _vertices,  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     _vertices,  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     vertexOffset: 0,  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     vertexOffset: 0,  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     primitiveCount: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     primitiveCount: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;_vertices.Length / 3&lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             };&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             };&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key monobook-mw_:diff:1.41:old-9104:rev-9105:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Administrator</name></author>
	</entry>
	<entry>
		<id>https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9104&amp;oldid=prev</id>
		<title>imported&gt;Administrator: ページの作成:「VertexPositionColor構造体は、MonoGameに標準搭載されている頂点構造体のひとつで、位置と色を持つ。  == 名前空間 == * MonoGame/クラ...」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame/%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/VertexPositionColor%E6%A7%8B%E9%80%A0%E4%BD%93&amp;diff=9104&amp;oldid=prev"/>
		<updated>2017-11-06T11:23:09Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「VertexPositionColor構造体は、MonoGameに標準搭載されている頂点構造体のひとつで、位置と色を持つ。  == 名前空間 == * MonoGame/クラ...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;VertexPositionColor構造体は、MonoGameに標準搭載されている頂点構造体のひとつで、位置と色を持つ。&lt;br /&gt;
&lt;br /&gt;
== 名前空間 ==&lt;br /&gt;
* [[MonoGame/クラスライブラリ/Microsoft.Xna.Framework.Graphics名前空間|Microsoft.Xna.Framework.Graphics名前空間]]&lt;br /&gt;
&lt;br /&gt;
== 構文 ==&lt;br /&gt;
 [DataContractAttribute]&lt;br /&gt;
 [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]&lt;br /&gt;
 public struct VertexPositionColor : IVertexType&lt;br /&gt;
&lt;br /&gt;
== コンストラクタ ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!&lt;br /&gt;
! 名称&lt;br /&gt;
! 概要&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| VertexPositionColor&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== フィールド ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!&lt;br /&gt;
! 名称&lt;br /&gt;
! 概要&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Color&lt;br /&gt;
| 頂点の色&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Position&lt;br /&gt;
| XYZ座標&lt;br /&gt;
|-&lt;br /&gt;
| static&lt;br /&gt;
| VertexDeclaration&lt;br /&gt;
| 頂点の構造&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== メソッド ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!&lt;br /&gt;
! 名称&lt;br /&gt;
! 概要&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Equals&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| GetHashCode&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| ToString&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== オペレータ ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!&lt;br /&gt;
! 名称&lt;br /&gt;
! 概要&lt;br /&gt;
|-&lt;br /&gt;
| static&lt;br /&gt;
| Equality&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| static&lt;br /&gt;
| Inequality&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 実装例 ==&lt;br /&gt;
この例ではVertexBufferを作らずにDrawUserPrimitivesメソッドで描画している。&lt;br /&gt;
VertexBufferを作りDrawPrimitivesメソッドで描画しても同じ結果になる。&lt;br /&gt;
どっちが良いのかは知らん。&lt;br /&gt;
&lt;br /&gt;
BasicEffectのVertexColorEnabledプロパティで色付けを有効にしている。これを設定しないと真っ白になり、設定すると頂点カラー間でグラデーションが掛かる。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
&lt;br /&gt;
using Microsoft.Xna.Framework;&lt;br /&gt;
using Microsoft.Xna.Framework.Graphics;&lt;br /&gt;
using Microsoft.Xna.Framework.Input;&lt;br /&gt;
&lt;br /&gt;
namespace DrawVertex&lt;br /&gt;
{&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// This is the main type for your game.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public class Game1 : Game&lt;br /&gt;
    {&lt;br /&gt;
        GraphicsDeviceManager _graphics;&lt;br /&gt;
        VertexPositionColor[] _vertices;&lt;br /&gt;
        Vector3 _cameraPosition = new Vector3(30, 0, 20);&lt;br /&gt;
        BasicEffect _effect;&lt;br /&gt;
&lt;br /&gt;
        public Game1()&lt;br /&gt;
        {&lt;br /&gt;
            _graphics = new GraphicsDeviceManager(this);&lt;br /&gt;
            Content.RootDirectory = &amp;quot;Content&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        protected override void Initialize()&lt;br /&gt;
        {&lt;br /&gt;
            // ウインドウサイズを変更する&lt;br /&gt;
            _graphics.PreferredBackBufferWidth = 800;&lt;br /&gt;
               _graphics.PreferredBackBufferHeight = 600;&lt;br /&gt;
            _graphics.ApplyChanges();&lt;br /&gt;
&lt;br /&gt;
            // MonoGame標準搭載の固定シェーダーを生成する&lt;br /&gt;
            _effect = new BasicEffect(_graphics.GraphicsDevice);&lt;br /&gt;
            // 色を有効にする&lt;br /&gt;
            _effect.VertexColorEnabled = true;&lt;br /&gt;
&lt;br /&gt;
            // 頂点データを作成する&lt;br /&gt;
            _vertices = new VertexPositionColor[6];&lt;br /&gt;
            _vertices[0] = new VertexPositionColor(new Vector3(-10, -10, 0), Color.Red);&lt;br /&gt;
            _vertices[1] = new VertexPositionColor(new Vector3(-10, +10, 0), Color.Green);&lt;br /&gt;
            _vertices[2] = new VertexPositionColor(new Vector3(+10, -10, 0), Color.Blue);&lt;br /&gt;
            _vertices[3] = new VertexPositionColor(new Vector3(-10, +10, 0), Color.Green);&lt;br /&gt;
            _vertices[4] = new VertexPositionColor(new Vector3(+10, +10, 0), Color.White);&lt;br /&gt;
            _vertices[5] = new VertexPositionColor(new Vector3(+10, -10, 0), Color.Blue);&lt;br /&gt;
&lt;br /&gt;
            base.Initialize();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        protected override void LoadContent()&lt;br /&gt;
        {&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        protected override void Update(GameTime gameTime)&lt;br /&gt;
        {&lt;br /&gt;
            // For Mobile devices, this logic will close the Game when the Back button is pressed&lt;br /&gt;
            // Exit() is obsolete on iOS&lt;br /&gt;
#if !__IOS__ &amp;amp;&amp;amp; !__TVOS__&lt;br /&gt;
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))&lt;br /&gt;
                Exit();&lt;br /&gt;
#endif&lt;br /&gt;
            base.Update(gameTime);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        protected override void Draw(GameTime gameTime)&lt;br /&gt;
        {&lt;br /&gt;
            _graphics.GraphicsDevice.Clear(Color.CornflowerBlue);&lt;br /&gt;
&lt;br /&gt;
            // カメラ&lt;br /&gt;
            var cameraLookAtVector = Vector3.Zero;&lt;br /&gt;
            var cameraUpVector = Vector3.UnitZ;&lt;br /&gt;
            _effect.View = Matrix.CreateLookAt(_cameraPosition, cameraLookAtVector, cameraUpVector);&lt;br /&gt;
&lt;br /&gt;
            float aspectRatio = _graphics.PreferredBackBufferWidth / (float)_graphics.PreferredBackBufferHeight;&lt;br /&gt;
            float fieldOfView = Microsoft.Xna.Framework.MathHelper.PiOver4;&lt;br /&gt;
            float nearClipPlane = 1;&lt;br /&gt;
            float farClipPlane = 200;&lt;br /&gt;
            _effect.Projection = Matrix.CreatePerspectiveFieldOfView(fieldOfView, aspectRatio, nearClipPlane, farClipPlane);&lt;br /&gt;
&lt;br /&gt;
            // 描画&lt;br /&gt;
            foreach (var pass in _effect.CurrentTechnique.Passes)&lt;br /&gt;
            {&lt;br /&gt;
                pass.Apply();&lt;br /&gt;
&lt;br /&gt;
                _graphics.GraphicsDevice.DrawUserPrimitives(&lt;br /&gt;
                    PrimitiveType.TriangleList, &lt;br /&gt;
                    _vertices, &lt;br /&gt;
                    vertexOffset: 0, &lt;br /&gt;
                    primitiveCount: 2);&lt;br /&gt;
            };&lt;br /&gt;
&lt;br /&gt;
            base.Draw(gameTime);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 関連項目 ==&lt;br /&gt;
* [[MonoGame/クラスライブラリ/IVertexTypeインターフェイス]]&lt;br /&gt;
** [[MonoGame/クラスライブラリ/VertexPositionColor構造体]]&lt;br /&gt;
** [[MonoGame/クラスライブラリ/VertexPositionTexture構造体]]&lt;br /&gt;
** [[MonoGame/クラスライブラリ/VertexPositionColorTexture構造体]]&lt;br /&gt;
** [[MonoGame/クラスライブラリ/VertexPositionNormalTexture構造体]]&lt;br /&gt;
&lt;br /&gt;
[[category: MonoGame]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Administrator</name></author>
	</entry>
</feed>