Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (40 sloc) 1.2 KB
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVector.h"
class CPointLight {
public:
CVector m_vecPosition;
CVector m_vecDirection;
float m_fRange;
float m_fColorRed;
float m_fColorGreen;
float m_fColorBlue;
unsigned char m_nType;
unsigned char m_nFogType;
bool m_bGenerateShadows;
private:
char _pad2B;
public:
CPointLight();
};
VALIDATE_SIZE(CPointLight, 0x2C);
class CPointLights {
public:
// static variables
// num of registered lights in frame
static unsigned short &NumLights;
// lights array. Count: MAX_POINTLIGHTS (32)
static CPointLight *aPointLights;
// static functions
static void AddLight(unsigned char lightType, CVector point, CVector direction, float radius, float red, float green, float blue, unsigned char fogType, bool generateExtraShadows);
static float GenerateLightsAffectingObject(CVector* point);
static void RemoveLightsAffectingObject();
static void RenderFogEffect();
};
extern unsigned int MAX_POINTLIGHTS; // default: 32
You can’t perform that action at this time.