コード例 #1
0
 public CCBox2dDraw(string spriteFontName)
 {
     _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000);
     _spriteFont     = CCApplication.SharedApplication.Content.Load <SpriteFont>(spriteFontName);
     _stringData     = new List <StringData>();
     _stringBuilder  = new StringBuilder();
 }
コード例 #2
0
ファイル: CCDraw.cs プロジェクト: womandroid/cocos2d-xna
 public CCBox2dDraw(string spriteFontName)
 {
     _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000);
     _spriteFont = CCApplication.SharedApplication.Content.Load<SpriteFont>(spriteFontName);
     _stringData = new List<StringData>();
     _stringBuilder = new StringBuilder();
 }
コード例 #3
0
 public Cocos2DDebugDraw()
 {
     _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000);
     _spriteFont = CCApplication.SharedApplication.Content.Load<SpriteFont>("fonts/arial-12");
     _stringData = new List<StringData>();
     _stringBuilder = new StringBuilder();
 }
コード例 #4
0
 public static void Init(GraphicsDevice graphics)
 {
     m_Batch = new CCPrimitiveBatch(graphics);
 }
コード例 #5
0
 public static void Init(GraphicsDevice graphics)
 {
     m_Batch = new CCPrimitiveBatch(graphics);
 }