Пример #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
 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);
 }