CheatMenuSA/src/Util.h

21 lines
731 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
2020-12-02 16:19:16 -05:00
class Util
{
private:
static bool LoadTextureFromFileDx11(const char* filename, ID3D11ShaderResourceView** out_srv);
public:
static void ClearCharTasksVehCheck(CPed* ped);
static CPed *GetClosestPed();
static CVehicle *GetClosestVehicle();
2020-12-02 16:19:16 -05:00
static int GetLargestGangInZone();
static void LoadTexturesInDirRecursive(const char * path, const char * file_ext, std::vector<std::string>& category_vec, std::vector<std::unique_ptr<TextureStructure>> &store_vec);
static bool IsOnMission();
static std::string GetLocationName(CVector *pos);
static void RainbowValues(int &r, int&g, int &b, float speed);
static RwTexture* LoadTextureFromPngFile(fs::path path);
static void UnloadTexture(RwTexture* texture9);
2020-12-02 16:19:16 -05:00
};