LoginSignup
1
0

More than 5 years have passed since last update.

メモ:「30日でできる!OS自作入門 」23日目

Posted at

グラフィックいろいろ

1) malloc を作ろう
- memory manager の初期化、malloc, free の API

2) 点を書く
- ウィンドウ番号、x, y, 色で API 呼び出し

スクリーンショット 2018-12-26 22.47.43.png

3) ウィンドウのリフレッシュ
- リフレッシュするだけのAPIを作成

4) 線を引く
- 点書くAPIを利用し、C言語でアルゴリズムを実装していくイメージ

スクリーンショット 2018-12-26 22.56.35.png

5) ウィンドウのクローズ
- 画面からウィンドウを消すAPI
- 早すぎてウィンドウ自体でたの見えなかったw

6) キー入力
- Windowsのpause 機能 (Enter押したら次実行)
- API の中でカーソルとかの処理もする必要あった

7) キー入力で遊ぶ
- * をArrowキーで動かせるようになった
- Cの実装のみ

window-move3.gif

8) 強制終了でウィンドウを閉じる
- シートにタスクをもたせて終了時にシート開いたままだと閉じて上げる処理

スクリーンショット 2018-12-26 23.18.53.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0