summaryrefslogtreecommitdiff
path: root/src/port/Engine.cpp
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-07-31 21:57:02 -0600
committerGitHub <noreply@github.com>2024-07-31 21:57:02 -0600
commit2a8362dd1010cad51f5529dc0f5a3dea6e526a4c (patch)
tree54dc4b8d2f48b55ce34adf5c38e0f14f3424796c /src/port/Engine.cpp
parent48a8342f3fff5df04737cbd0511945a8bc5d6dd9 (diff)
Add royal raceway course (#29)
* Add files via upload * Update memory.c * Update render_courses.c * Update code_80281780.c * Update path_spawn_metadata.c * Update render.inc.c * Update all_course_packed.h * Update all_course_model.h * Update all_course_data.h * Delete courses/royal_raceway/course_data.c * Delete courses/royal_raceway/course_data.h * Delete courses/royal_raceway/course_vertices.inc.c * Delete courses/royal_raceway/course_displaylists.c * Delete courses/royal_raceway/course_displaylists.h * Update memory.c * Update royal_raceway_displaylists.yml * Update values * update * Course works now * fixes * wip framebuffer * Fix trees * Fix player select borders * Remove commented code --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/port/Engine.cpp')
-rw-r--r--src/port/Engine.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp
index 78c0638f4..b16d34410 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -246,3 +246,13 @@ extern "C" float OTRGetDimensionFromRightEdge(float v) {
extern "C" int16_t OTRGetRectDimensionFromRightEdge(float v) {
return ((int)ceilf(OTRGetDimensionFromRightEdge(v)));
}
+
+// Gets the width of the current render target area
+extern "C" uint32_t OTRGetGameRenderWidth() {
+ return gfx_current_dimensions.width;
+}
+
+// Gets the height of the current render target area
+extern "C" uint32_t OTRGetGameRenderHeight() {
+ return gfx_current_dimensions.height;
+} \ No newline at end of file