cc -x objective-c -m32 -framework Cocoa -o kp0012 kp0012.c bla.c
関数名 | 機能 |
openWin(xsiz, ysiz, title) | ウィンドウを開く |
flushAll(win) | 描画命令で描いた絵を画面に反映させる |
end() | プログラムを終了する |
setPixEx(win, x, y, c) | 点を打つ |
fillRectEx(win, sx, sy, x0, y0, c) | 塗りつぶした長方形を描く |
drawRectEx(win, sx, sy, x0, y0, c) | 枠だけの長方形を描く |
fillOvalEx(win, sx, sy, x0, y0, c) | 塗りつぶした楕円を描く(正円も可能) |
drawOvalEx(win, sx, sy, x0, y0, c) | 枠だけの楕円を描く(正円も可能) |
drawStrEx(win, x0, y0, c, b, str) | 文字列を描画する |
drawLineEx(win, x0, y0, x1, y1, c) | 直線を描く |
fillEx(win, x, y, c) | 色を塗る |
waitEx(msec) | ミリ秒待つ |
#include "bla_easy.h" int main() { Window *win = openWin(160, 48, "hello"); drawStr(win, 32, 16, 0xffffff, 0x000000, "hello, world"); end(); }
コメント | お名前 | NameLink | |