Weitere ähnliche Inhalte
Ähnlich wie Delphi のひみつ!(2015/01/29 CROSS 2015) (20)
Mehr von Jun Hosokawa (6)
Delphi のひみつ!(2015/01/29 CROSS 2015)
- 1. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 3
Happy Creation, Play the Development!
Delphi のひみつ!
CROSS 2015 D1
本当に使える CROSS プラットフォーム
開発環境はどれだ!ガチンコ対決!
2015/01/29
株式会社シリアルゲームズ 細川 淳
- 2. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 4
Happy Creation, Play the Development!
自己紹介
• 細川のひみつ!
–twitter: @pik
–株式会社シリアルゲームズ勤務
–エンバカデロMVP(Delphi)
–最近の仕事
• Twitter で Delphi を検索して、不用意に
Delphi とつぶやいた人にツイートを飛ばす
• たまに
– Windows / OSX アプリを作る
– iOS / Android アプリを作る
- 3. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 5
Happy Creation, Play the Development!
• シリアルゲームズのひみつ!
– ゲームサーバ・クライアントのワンストップ制作
• 両方を同時に制作することで期間・費用を抑えられま
す!
– ゲーム業界のバックエンドを支えています
• ゲームサーバやバックエンドプログラム全般の制作
– iOS / Android のアプリケーション
• XCode / AndroidStudio による作成
•Delphi による作成
- 4. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 6
Happy Creation, Play the Development!
Delphi のひみつ
マルチプラットフォーム
- 5. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 7
Happy Creation, Play the Development!
マルチプラットフォーム
• Windows / OSX / iOS / Android をサポート
– もう少し増えるかも…
• ロードマップには Linux や Windows Phone も入ってます
Google Glass
Android Ware
などにも対応
- 6. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 8
Happy Creation, Play the Development!
マルチプラットフォーム
• IDE は Windows のみで動作
– OSX で動く IDE が待たれる…
• FireMonkey
– マルチプラットフォーム専用ライブラリ
– 昔の Delphi とはだいぶ違う!
• VCL は存在するが最早重要では無い!
- 7. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 9
Happy Creation, Play the Development!
マルチプラットフォーム
• OS ネイティブ API のサポート
– 移植やラップとは異なり Object Pascal から
直接 API を呼べます!
• 最終的には JNI や Objective-C Bridge につなが
るので、厳密にはラップですが…
– それゆえ、使えない API はありません!!
• 基本的には。
- 8. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 10
Happy Creation, Play the Development!
マルチプラットフォーム
procedure OpenBrowser(const AURL: String);
var
Intent: JIntent;
begin
Intent := TJIntent.Create;
Intent.setAction(TJIntent.JavaClass.ACTION_VIEW);
Intent.setData(StrToJURI(AURL));
SharedActivity.startActivity(Intent);
end;
Android API を使う例
- 9. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 11
Happy Creation, Play the Development!
マルチプラットフォーム
procedure HideStatusBar;
begin
// UIApp は UIApplication のインスタンス
UIApp.setStatusBarHidden(True);
AppDelegate
.MainWindow
.RootViewController
.StatusBarVisible := False;
if TOSVersion.Check(7, 0) then
UIViewController(
AppDelegate.MainWindow.RootViewController.Super
).setNeedsStatusBarAppearanceUpdate;
end;
iOS API を使う例
- 10. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 12
Happy Creation, Play the Development!
Delphi のひみつ
ビジュアル開発
- 11. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 13
Happy Creation, Play the Development!
ビジュアル開発
• コンポーネントによるビジュアル開発
コンポーネント(部品)を
D&Dで配置!
- 12. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 14
Happy Creation, Play the Development!
ビジュアル開発
• 2way-tools
オブジェクトインスペクタで
・プロパティ(部品の属性)の変更
・イベントの生成
ができる
さらに!
これらは全てコードとして生成される!
- 13. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 15
Happy Creation, Play the Development!
ビジュアル開発
置いたコンポーネントが自動的に
クラスの変数に!
イベントがメソッドとして自動的に
宣言される!
- 14. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 16
Happy Creation, Play the Development!
Delphi のひみつ
ネイティブコード
- 15. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 17
Happy Creation, Play the Development!
ネイティブコード
• アプリは全てネイティブコードになる!
– Android のアプリでさえも!
• NDK ベースの開発になります。
• コンパイラが6個!
– Windows 32bit 用
– Windows 64bit 用
– OSX 用
– iOS シミュレータ用
– iOS デバイス用
– Android 用
- 16. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 18
Happy Creation, Play the Development!
Delphi のひみつ
UI 独自描画
- 17. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 19
Happy Creation, Play the Development!
UI の独自描画
• FireMonkey ライブラリ
OpenGL を使って全部自分で
描画してます!
Google / Apple から情報を
貰ってピクセル単位で同じに
見えるように
(ピクセルパーフェクト)
文字も!
ボタンも!
リストも!
コントロール全部が!
- 18. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 20
Happy Creation, Play the Development!
UI の独自描画
• スタイル機構 / FireUI
– Style という機構を導入することでプラット
フォームに即した見た目に勝手に変わります!
戻るボタンを
消したりも!
- 19. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 21
Happy Creation, Play the Development!
Delphi のひみつ
言語
- 20. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 22
Happy Creation, Play the Development!
言語
• 2つの言語を使用可能!(※RAD Studio の場合)
–Object Pascal
• 昔は Delphi Language と言っていました
– さらに昔は Object Pascal と言っていました!?
• オススメ!
• ジェネリックスやクロージャなど一般的な機能
は全部使えます!
–C++
• C++Builder / Appmethod / RAD Studio で
使用できます
- 21. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 23
Happy Creation, Play the Development!
Delphi のひみつ
製品ライン
- 22. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 24
Happy Creation, Play the Development!
製品ライン
RAD Studio XE7 Delphi XE7 C++ Builder XE7 Appmethod 1.15
言語 Object Pascal / C++ Object Pascal C++ 契約形態による
Mobile Add-on Pack 不要 Professional: 要
それ以上:不要
不要
Framework VCL / FireMonkey FireMonkey
開発対象 Win / OSX
iOS/ Android
Professional: Windows / OSX
それ以上 or
Professional + MobileAddonPack
→ Win / OSX / iOS / Android
契約形態による
配布制限 なし
エディション Starter
Professional
Enterprise / Ultimate / Architect
Freeプラン
個人プラン
ビジネスプラン
価格 Professional (ESD):
¥208,000
Professional (ESD):
¥116,000
MobileAddonPack:
¥58,000
¥34,000 / 1Platform
- 23. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 25
Happy Creation, Play the Development!
Delphi のひみつ
その他
- 24. Copyright © 2013 SERIALGAMES inc. All Rights Reserved. PAGE 26
Happy Creation, Play the Development!
言語
• 検索ワード!
–[Delphi セミナー]
エンバカデロテクノロジーズの
セミナー情報
–[Delphi カメラア
カメラアプリの作成ビデオなど
チュートリアルビデオ群!
Delphi セミナー 検索
Delphi カメラアプリ 検索