feat(profile): add type information for CGxDevice functions

This commit is contained in:
phaneron 2024-10-04 01:43:35 -04:00
parent 5a70c8290f
commit 34d16625b7
9 changed files with 250 additions and 129 deletions

View file

@ -82,8 +82,8 @@ struct CGxDevice__vtable {
void* v_fn_6_NotifyOnTextureRecreation;
// void NotifyOnDisplayChange();
void* v_fn_7_NotifyOnDisplayChange;
// don't know if this ever gets called (something deleted?)
void* v_fn_8_destructor;
// public: virtual void * __thiscall CGxDevice::`scalar deleting destructor'(unsigned int)
void* v_fn_8_scalar_deleting_destructor;
// int32_t DeviceCreate(const CGxFormat&);
void* v_fn_9_DeviceCreate;
// int32_t DeviceCreate(long (*)(void*, uint32_t, uint32_t, int32_t), CGxFormat const&);

View file

@ -0,0 +1,21 @@
#ifndef GX_LIGHT_H
#define GX_LIGHT_H
#include "tempest/vector.h"
DECLARE_STRUCT(CGxLight);
struct CGxLight {
// int32_t m_enabled : 1;
// int32_t m_isOmni : 1;
int32_t m_flags;
C3Vector m_dir;
C3Vector m_ambColor;
C3Vector m_dirColor;
C3Vector m_specColor;
float m_constantAttenuation;
float m_linearAttenuation;
float m_quadraticAttenuation;
};
#endif