コード例 #1
0
        public void DrawObject(ObjectOnDisplay obj, OpenGL gl)
        {
            ShipTexturesHelper.GetShipTexture(gl, ((MapEnemy)obj.GameObject).Data.ShipName).Bind(gl);
            var size = new Size(80, 80);

            DrawHelper.Draw(obj, gl, size, ((MapEnemy)obj.GameObject).Angle);
        }
コード例 #2
0
ファイル: PlayerDrawHelper.cs プロジェクト: ShaDream/VoidTime
 public void DrawObject(ObjectOnDisplay obj, OpenGL gl)
 {
     ShipTexturesHelper.GetShipTexture(gl, ((Player)obj.GameObject).Data.ShipName).Bind(gl);
     DrawHelper.Draw(obj, gl, obj.GameObject.Size, ((Player)obj.GameObject).Angle);
 }
コード例 #3
0
 public void DrawObject(ObjectOnDisplay obj, OpenGL gl)
 {
     ShipTexturesHelper.GetShipTexture(gl, ((BattleEnemy)obj.GameObject).Data.ShipName).Bind(gl);
     DrawHelper.Draw(obj, gl, new Size(100, 110), ((BattleEnemy)obj.GameObject).Angle);
 }