2020-09-08 16:23:01 +00:00
|
|
|
/* ReC98
|
|
|
|
* -----
|
|
|
|
* TH05 Staff Roll
|
|
|
|
*/
|
|
|
|
|
2020-09-08 16:56:42 +00:00
|
|
|
#pragma codeseg maine_01__TEXT
|
|
|
|
|
2020-09-08 16:23:01 +00:00
|
|
|
extern "C" {
|
2020-09-08 16:56:42 +00:00
|
|
|
#include "ReC98.h"
|
2020-09-08 16:23:01 +00:00
|
|
|
#include "th01/math/subpixel.hpp"
|
|
|
|
|
2020-09-08 16:56:42 +00:00
|
|
|
// State
|
|
|
|
// -----
|
|
|
|
extern pixel_t space_window_w;
|
|
|
|
extern pixel_t space_window_h;
|
|
|
|
extern screen_point_t space_window_center;
|
|
|
|
|
2020-09-08 16:23:01 +00:00
|
|
|
// Effectively just moves all the entities into the opposite direction.
|
|
|
|
extern SPPoint space_camera_velocity;
|
2020-09-08 16:56:42 +00:00
|
|
|
// -----
|
|
|
|
|
|
|
|
void pascal near space_window_set(
|
|
|
|
screen_x_t center_x, screen_y_t center_y, pixel_t w, pixel_t h
|
|
|
|
)
|
|
|
|
{
|
|
|
|
space_window_center.x = center_x;
|
|
|
|
space_window_center.y = center_y;
|
|
|
|
space_window_w = w;
|
|
|
|
space_window_h = h;
|
|
|
|
grc_setclip(
|
|
|
|
(space_window_center.x - (space_window_w / 2)) - 8,
|
|
|
|
(space_window_center.y - (space_window_h / 2)) - 8,
|
|
|
|
(space_window_center.x + (space_window_w / 2)) + 7,
|
|
|
|
(space_window_center.y + (space_window_h / 2)) + 7
|
|
|
|
);
|
|
|
|
}
|
2020-09-08 16:23:01 +00:00
|
|
|
|
|
|
|
}
|