clean some gbi function in header (#30)

* clean some gbi function in header

* move gbi extra in mk64.h

* Update mk64.h

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
coco875
2024-08-12 23:51:31 +02:00
committed by GitHub
parent 12b31d8c24
commit 745ed093ec
3 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,8 @@
#ifndef ALL_COURSE_DATA_H
#define ALL_COURSE_DATA_H
#include "mk64.h"
#include "courses/big_donut/course_data.h"
#include "courses/block_fort/course_data.h"
#include "courses/double_deck/course_data.h"
@@ -15,6 +17,5 @@
#include "courses/bowsers_castle/course_data.h"
#include "courses/sherbet_land/course_data.h"
#include "courses/wario_stadium/course_data.h"
void gSPDisplayList(Gfx* pkt, Gfx* dl);
#endif // ALL_COURSE_DATA_H
-2
View File
@@ -99,6 +99,4 @@
**/
#define GET_PACKED_END(dl) (((u8 *) dl) + sizeof(dl) - sizeof(dl[0]) - 0x07000000)
void gSPDisplayList(Gfx* pkt, Gfx* dl);
#endif
+2 -1
View File
@@ -3,6 +3,7 @@
#include <libultraship.h>
#include <string.h>
#include <libultra/gbi.h>
/**
* @file mk64.h
@@ -119,7 +120,7 @@ enum SURFACE_TYPE {
#define MACRO_COLOR_FLAG(r, g, b, flag) (r&~0x3) | (flag & 0x3), (g&~0x3) | ((flag>>2) & 0x3), b
// libultra
// Extra gbi commands
void gSPSegmentLoadRes(void* value, int segNum, uintptr_t target);
void gSPDisplayList(Gfx* pkt, Gfx* dl);
void gSPDisplayListOffset(Gfx* pkt, Gfx* dl, int offset);