<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.yz-learning.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Yz-Learning Base Wiki - game-engineer:classes:2023:game-programing-2:first-term:5</title>
        <description></description>
        <link>https://wiki.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 14:33:17 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.yz-learning.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Yz-Learning Base Wiki</title>
            <link>https://wiki.yz-learning.com/</link>
        </image>
        <item>
            <title>C++復習課題のあれこれ</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2023:game-programing-2:first-term:5:05-9-5&amp;rev=1683620194</link>
            <description>C++復習課題のあれこれ

	*  クラスを作って
	*  インスタンスを必要な数だけ取得し（動的インスタンス配列取得）
	*  メンバ変数を呼び出し（面積を計算）
	*  ゲッターで取得した面積の値で（メンバ変数の呼び出し）</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 May 2023 08:16:34 +0000</pubDate>
        </item>
        <item>
            <title>今日のソースコード</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2023:game-programing-2:first-term:5:05-17-2&amp;rev=1684289054</link>
            <description>今日のソースコード

まずこんな構成を作ろう！（設計）



キャラクタークラス(Character)←----+-----| プレイヤークラス(Player)
                                |
                                +-----| エネミークラス(Enemy)
ゲームマネージャークラス(GameManager)
      +----| Player pl
      +----| Enemy em
      |----以下メンバ関数-----
      +----| GameManager() コンストラクタ
      +----| ~GameManager() デストラクタ
      +----| void GameLoop() ゲームループ本体…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 17 May 2023 02:04:14 +0000</pubDate>
        </item>
        <item>
            <title>名前空間の使い方</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2023:game-programing-2:first-term:5:05-26-1&amp;rev=1685074395</link>
            <description>名前空間の使い方



ついでにenumの話

通常のenumの使い方（Cのenum)



#include &lt;iostream&gt;
//画像ファイルの色を表したいenum
enum Colors
{
	RED = 0, GREEN, BLUE, ALPHA,
};

//enum Renger
//{
//	RED, BULE, PINK, GREEN, YELLOW,
//};
const int ImageWidth = 600;
const int ImageHeight = 400;
//画像のピクセルを表す配列（３次元怖い）
unsigned char ColorImage[ImageWidth][ImageHeight][4];

int main() {
  //画像の色を黒で初期化
  for(auto j=0;j&lt;ImageHeight;j++){
	  for(auto i=0;i&lt;ImageWidth;i++){
		  ColorImage[i][j][RED] = 0;
		  ColorImage[i][j][GREEN] = 0;
		  ColorIm…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 26 May 2023 04:13:15 +0000</pubDate>
        </item>
        <item>
            <title>座標変換（モデルから、スクリーン投影→ピクセル化）</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2023:game-programing-2:first-term:5:05-30-5&amp;rev=1685490101</link>
            <description>座標変換（モデルから、スクリーン投影→ピクセル化）

![CG座標変換](&lt;http://www.cg-ya.net/wp-content/uploads/2012/06/coord_trans.gif&gt;)  

モデル座標 =&gt; ワールド座標変換（ワールド行列）  
・モデルそれぞれの座標系だったものを、統一の座標系（ワールド座標）に変換する  
・全部のモデルが同じ座標系の上に並ぶ</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 30 May 2023 23:41:41 +0000</pubDate>
        </item>
    </channel>
</rss>
