CDocOc::RenderClaws

This commit is contained in:
krystalgamer 2024-05-28 20:12:31 +02:00
parent db0d6beb40
commit 7d9bca6f9a
4 changed files with 24 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include "validate.h"
#include "trig.h"
#include "panel.h"
#include "ps2m3d.h"
// @NotOk
// globals
@ -72,6 +73,12 @@ void DocOck_CreateDocOck(const unsigned int *stack, unsigned int *result)
*result = reinterpret_cast<unsigned int>(new CDocOc(v2, v3));
}
// @Ok
void CDocOc::RenderClaws(void)
{
M3d_Render(this->field_570);
}
void validate_CDocOc(void){
VALIDATE_SIZE(CDocOc, 0x590);
@ -84,4 +91,5 @@ void validate_CDocOc(void){
VALIDATE(CDocOc, field_4EC, 0x4EC);
VALIDATE(CDocOc, field_50C, 0x50C);
VALIDATE(CDocOc, field_554, 0x554);
VALIDATE(CDocOc, field_570, 0x570);
}

View File

@ -10,6 +10,7 @@ class CDocOc : public CBaddy {
public:
EXPORT CDocOc(int*, int);
EXPORT void RenderClaws(void);
int field_324;
int field_328;
@ -28,7 +29,11 @@ public:
unsigned char padAfter514[0x40-4];
int field_554;
unsigned char padAfter554[0x38];
unsigned char padAfter554[0x570-0x554-4];
void* field_570;
unsigned char padBottom[0x590-0x570-4];
};

View File

@ -5,3 +5,7 @@
void M3d_BuildTransform(CSuper* a){
a->actualcsuperend = (__int16*)69;
}
// @TODO
void M3d_Render(void*)
{}

View File

@ -1,6 +1,12 @@
#pragma once
#ifndef PS2M3D_H
#define PS2M3D_H
#include "export.h"
#include "ob.h"
EXPORT void M3d_BuildTransform(CSuper*);
EXPORT void M3d_Render(void*);
#endif