mirror of
https://github.com/halpz/re3.git
synced 2025-06-26 20:46:21 +00:00
More refs removed
This commit is contained in:
20
src/render/Instance.cpp
Normal file
20
src/render/Instance.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "Instance.h"
|
||||
|
||||
void
|
||||
CInstance::Shutdown()
|
||||
{
|
||||
GetMatrix().Detach();
|
||||
}
|
||||
|
||||
class CInstance_ : public CInstance
|
||||
{
|
||||
public:
|
||||
void dtor() { CInstance::~CInstance(); }
|
||||
};
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x50BE90, &CInstance_::dtor, PATCH_JUMP);
|
||||
InjectHook(0x50B850, &CInstance::Shutdown, PATCH_JUMP);
|
||||
ENDPATCHES
|
14
src/render/Instance.h
Normal file
14
src/render/Instance.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "Placeable.h"
|
||||
|
||||
// unused
|
||||
|
||||
class CInstance : public CPlaceable
|
||||
{
|
||||
public:
|
||||
int m_modelIndex;
|
||||
public:
|
||||
~CInstance() = default;
|
||||
void Shutdown();
|
||||
};
|
@ -5,13 +5,13 @@
|
||||
#include "Camera.h"
|
||||
#include "Sprite2d.h"
|
||||
|
||||
RwIm2DVertex *CSprite2d::maVertices = (RwIm2DVertex*)0x6E9168;
|
||||
float &CSprite2d::RecipNearClip = *(float*)0x880DB4;
|
||||
int32 &CSprite2d::mCurrentBank = *(int32*)0x8F1AF4;
|
||||
RwTexture **CSprite2d::mpBankTextures = (RwTexture**)0x774DC0;
|
||||
int32 *CSprite2d::mCurrentSprite = (int32*)0x6F4500;
|
||||
int32 *CSprite2d::mBankStart = (int32*)0x774BE8;
|
||||
RwIm2DVertex *CSprite2d::maBankVertices = (RwIm2DVertex*)0x8429F8;
|
||||
RwIm2DVertex CSprite2d::maVertices[4];
|
||||
float CSprite2d::RecipNearClip;
|
||||
int32 CSprite2d::mCurrentBank;
|
||||
RwTexture *CSprite2d::mpBankTextures[10];
|
||||
int32 CSprite2d::mCurrentSprite[10];
|
||||
int32 CSprite2d::mBankStart[10];
|
||||
RwIm2DVertex CSprite2d::maBankVertices[500];
|
||||
|
||||
void
|
||||
CSprite2d::SetRecipNearClip(void)
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
class CSprite2d
|
||||
{
|
||||
static float &RecipNearClip;
|
||||
static int32 &mCurrentBank;
|
||||
static RwTexture **mpBankTextures; //[10];
|
||||
static int32 *mCurrentSprite; //[10];
|
||||
static int32 *mBankStart; //[10];
|
||||
static RwIm2DVertex *maBankVertices; //[500];
|
||||
static RwIm2DVertex *maVertices; //[4];
|
||||
static float RecipNearClip;
|
||||
static int32 mCurrentBank;
|
||||
static RwTexture *mpBankTextures[10];
|
||||
static int32 mCurrentSprite[10];
|
||||
static int32 mBankStart[10];
|
||||
static RwIm2DVertex maBankVertices[500];
|
||||
static RwIm2DVertex maVertices[4];
|
||||
public:
|
||||
RwTexture *m_pTexture;
|
||||
|
||||
|
Reference in New Issue
Block a user