d3d_set_projection_ortho()


3D グラフィック機能

d3d_set_projection_ortho

正射影に設定します

構文

d3d_set_projection_ortho(x, y, w, h, angle)
x
ルームから見たX座標
y
ルームから見たY座標
w
投影する幅
h
投影する高さ
angle
投影する角度

戻り値

N/A
なし

説明

Sometimes you temporarily need a normal orthographic projection (this is what is used when there is no 3D active), or you want to return to the default perspective projection, which is what this function is for. It is typically used to draw an overlay, for example, to show the score or other aspects as this gives a "flat" view of the elements drawn (ie: no perspective). See the image below to get an idea of the difference between orthographic and perspective views.

ortho_persp_image.png

注意

You may also need to temporarily switch off hidden surface removal if you want the information to be drawn regardless of the current depth value.


draw_set_color(c_black);
d3d_set_projection_ortho(0, 0, room_width, room_height, 0);
d3d_set_hidden(false);
draw_text(10, 10, 'Score: ' + string(score));
d3d_set_hidden(true);

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 1138
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 3