src/core1: more documentation and renaming
neue Datei: include/core1/framebufferdraw.h neue Datei: include/core1/sprite.h umbenannt: src/core1/code_ABB0.c -> src/core1/framebufferdraw.c umbenannt: src/core1/code_13680.c -> src/core1/sprite.c umbenannt: src/core1/code_3A70.c -> src/core1/stub_3A70.c
This commit is contained in:
@@ -4,14 +4,18 @@
|
||||
#include <ultra64.h>
|
||||
#include "bool.h"
|
||||
#include "enums.h"
|
||||
#include "structs.h"
|
||||
#include "prop.h"
|
||||
|
||||
#include "core1/eeprom.h"
|
||||
#include "core1/framebufferdraw.h"
|
||||
#include "core1/lookup.h"
|
||||
#include "core1/main.h"
|
||||
#include "core1/mem.h"
|
||||
#include "core1/pfsmanager.h"
|
||||
#include "core1/rarezip.h"
|
||||
#include "core1/sns.h"
|
||||
#include "core1/sprite.h"
|
||||
#include "core1/ucode.h"
|
||||
#include "core1/viewport.h"
|
||||
#include "core1/vimgr.h"
|
||||
@@ -19,6 +23,8 @@
|
||||
void mlMtx_apply_vec3f(f32[3], f32[3]);
|
||||
void func_80252C08(f32 arg0[3], f32 arg1[3], f32 scale, f32 arg3[3]);
|
||||
void glcrc_calc_checksum(void *start, void *end, u32 checksum[2]);
|
||||
f32 ml_cos_deg(f32);
|
||||
f32 ml_sin_deg(f32);
|
||||
|
||||
|
||||
/* src/core1/depthbuffer.c */
|
||||
|
28
include/core1/framebufferdraw.h
Normal file
28
include/core1/framebufferdraw.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef BANJO_KAZOOIE_CORE1_FRAMEBUFFERDRAW_H
|
||||
#define BANJO_KAZOOIE_CORE1_FRAMEBUFFERDRAW_H
|
||||
|
||||
void framebufferdraw_drawSpriteCI4(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled);
|
||||
void framebufferdraw_drawSpriteCI8(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled);
|
||||
void framebufferdraw_drawSpriteRGBA16(s32 x, s32 y, BKSprite *sprite, s32 frame, bool alpha_enabled);
|
||||
void framebufferdraw_drawSpriteI4(s32 x, s32 y, BKSprite *sprite, s32 frame, bool aplha_enabled);
|
||||
void framebufferdraw_drawSpriteIA4(s32 x, s32 y, BKSprite *sprite, s32 frame, bool aplha_enabled);
|
||||
void framebufferdraw_drawSpriteI8(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled);
|
||||
void framebufferdraw_drawSpriteIA8(s32 x, s32 y, BKSprite *sprite, s32 frame, bool alpha_enabled);
|
||||
void framebufferdraw_drawSpriteRGBA32(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled);
|
||||
void framebufferdraw_stub1(s32 arg0, s32 arg1, s32 arg2, s32 arg3);
|
||||
void framebufferdraw_stub2(s32 arg0, s32 arg1, s32 arg2, s32 arg3);
|
||||
void framebufferdraw_drawTexture_CI4(s32 x, s32 y, void *tmem, s32 w, s32 h, bool alpha_enabled);
|
||||
void framebufferdraw_draw(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled);
|
||||
void framebufferdraw_func_80249DE0(s32 x, s32 y, s16 *arg2, s32 arg3, s32 arg4);
|
||||
void framebufferdraw_func_80249F34(s32 x, s32 y, Struct84s* maskList, s32 maskIndex, s32 mX, s32 mY, s32 mW, s32 mH, s32 maskColor, s32 mStride, bool dim, s32 replacementColor);
|
||||
void framebufferdraw_drawGrid(s32 x, s32 y, s32 arg2, s32 arg3, s32 horz_spacing, s32 vert_spacing);
|
||||
void framebufferdraw_setPixel(s32 x, s32 y);
|
||||
void framebufferdraw_drawOutline(s32 x, s32 y, s32 w, s32 h);
|
||||
void framebufferdraw_func_8024A564(s32 x, s32 y, u16 *arg2, s32 arg3, s32 arg4, f32 arg5, f32 arg6);
|
||||
void framebufferdraw_drawRect(s32 x, s32 y, s32 w, s32 h);
|
||||
void framebufferdraw_resetPrimColorAndBuffer(void);
|
||||
void framebufferdraw_setPrimColor(s32 r, s32 g, s32 b);
|
||||
void framebufferdraw_setBufferIndex(s32 buffer_indx);
|
||||
s32 framebufferdraw_getBufferIndex(void);
|
||||
|
||||
#endif
|
11
include/core1/sprite.h
Normal file
11
include/core1/sprite.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef BANJO_KAZOOIE_CORE1_SPRITE_H
|
||||
#define BANJO_KAZOOIE_CORE1_SPRITE_H
|
||||
|
||||
u32 sprite_getUnk8(BKSprite *this);
|
||||
u32 sprite_getUnkA(BKSprite *this);
|
||||
u32 sprite_getUnk6(BKSprite *this);
|
||||
u32 sprite_getUnk4(BKSprite *this);
|
||||
s32 sprite_getFrameCount(BKSprite *this);
|
||||
BKSpriteFrame *sprite_getFramePtr(BKSprite *this, u32 frame_id);
|
||||
|
||||
#endif
|
@@ -57,8 +57,6 @@ void ml_vec3f_scale_copy(f32 dst[3], f32 src[3], f32 scale);
|
||||
|
||||
float gu_sqrtf(float val);
|
||||
|
||||
BKSpriteFrame *spriteGetFramePtr(BKSprite *, u32);
|
||||
|
||||
bool baanim_isAt(f32);
|
||||
void baanim_playForDuration_once(enum asset_e anim_id, f32 duration);
|
||||
void baanim_setEnd(f32);
|
||||
|
Reference in New Issue
Block a user