mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Utilize the new IDetour::DetourSetup() code, IDetour::Attach and IDetour::Detach have been removed in favor of this (significantly reduces chance of user error). Since the template check happens in the idetour header, it is much more aggressive on type mismatches, such as a difference in parameter types, between the function and detour, will now raise a compile time error. As a result, some type mismatches have been fixed in this commit as well.
31 lines
882 B
C++
31 lines
882 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 Detour(const bool bAttach) const { }
|
|
};
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif |