mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
This change was planned for a long time. This moves all REGISTER calls to a single translation unit, this is required as we currently added a very dirty workaround for not registering duplicates by checking if VFTable pointer was already present in the vector... Registering from single translation unit prevents duplicate instances that gets created if header is included by more cpp files. Reworking this reduced 100kb+ of compiled code. This commit also reworked the way functions/variables/constant gets logged with their addresses; the new code formats them on the fly, and allows for resize at any time. Formatting is no longer required by programmer. TODO: currently there are some compile errors for dedicated and client dll's. These will be resolved very soon as they need to be properly worked out still (server & client only stuff needs to be properly split). Use the 'main' (stable) branch for the time being if you need to compile these dll's.
32 lines
905 B
C++
32 lines
905 B
C++
#pragma once
|
|
#include "mathlib/vector.h"
|
|
#include "mathlib/vmatrix.h"
|
|
|
|
#ifndef DEDICATED
|
|
|
|
// Remove after CViewSetup impl
|
|
// For main view calc width / 2 = posX same for posY with height.
|
|
struct TransformInfo_t
|
|
{
|
|
int posX;
|
|
int posY;
|
|
int width;
|
|
int height;
|
|
};
|
|
|
|
bool ClipTransform(const VMatrix& w2sMatrix, const Vector3D& point, Vector3D* pClip);
|
|
bool ScreenTransform(const TransformInfo_t& transformInfo, const VMatrix& w2sMatrix, const Vector3D& point, Vector3D* pClip);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
class VGL_RMain : public IDetour
|
|
{
|
|
virtual void GetAdr(void) const { }
|
|
virtual void GetFun(void) const { }
|
|
virtual void GetVar(void) const { }
|
|
virtual void GetCon(void) const { }
|
|
virtual void Attach(void) const { }
|
|
virtual void Detach(void) const { }
|
|
};
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif |