SDXFrameWork  0.12
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Model.h
1 //Copyright © 2014 SDXFramework
2 //[License]GNU Affero General Public License, version 3
3 //[Contact]http://sourceforge.jp/projects/dxframework/
4 #pragma once
5 #include<Framework/IModel.h>
6 namespace SDX
7 {
10  template <class TShape, class TSprite>
11  class Model : public IModel
12  {
13  public:
14  TShape shape;
15  TSprite sprite;
16 
18  Model(TShape &&図形と位置, TSprite &&描画方法) :
20  shape(図形と位置),
21  sprite(描画方法)
22  {}
23  };
24 }
Model(TShape &&図形と位置, TSprite &&描画方法)
コンストラクタ.
Definition: Model.h:18
Modelの基本クラス.
Definition: Model.h:11
TShape shape
対応Shape
Definition: Model.h:14
TSprite sprite
対応Sprite
Definition: Model.h:15
ShapeとSpriteをまとめて、2Dモデルを表すクラス.
Definition: IModel.h:12