metaforce/Runtime/CGraphics.cpp

59 lines
1.2 KiB
C++
Raw Normal View History

2016-02-11 18:36:34 -08:00
#include "CGraphics.hpp"
#include <Math.hpp>
2016-02-13 01:02:47 -08:00
namespace pshag
2016-02-11 18:36:34 -08:00
{
u32 CGraphics::g_NumLightsActive = 0;
ERglLight CGraphics::g_LightActive = ERglLight::None;
ERglLight CGraphics::g_LightsWereOn = ERglLight::None;
2016-02-12 16:57:09 -08:00
Zeus::CTransform CGraphics::g_ViewMatrix;
2016-02-11 18:36:34 -08:00
void CGraphics::DisableAllLights()
{
g_NumLightsActive = 0;
g_LightActive = ERglLight::None;
// TODO: turn lights off for real
}
void CGraphics::EnableLight(ERglLight light)
{
if ((light & g_LightActive) == ERglLight::None)
{
g_LightActive |= light;
++g_NumLightsActive;
// TODO: turn light on for real
}
g_LightsWereOn = g_LightActive;
}
void CGraphics::SetLightState(ERglLight lightState)
{
// TODO: set state for real
g_LightActive = lightState;
g_NumLightsActive = Zeus::Math::PopCount(lightState);
}
2016-02-12 16:57:09 -08:00
void CGraphics::SetDepthWriteMode(bool, ERglEnum, bool)
{
}
void CGraphics::SetBlendMode(ERglBlendMode, ERglBlendFactor, ERglBlendFactor, ERglLogicOp)
{
}
void CGraphics::SetCullMode(ERglCullMode)
{
}
void CGraphics::SetAlphaCompare(ERglAlphaFunc comp0, u8 ref0, ERglAlphaOp op, ERglAlphaFunc comp1, u8 ref1)
{
}
void CGraphics::SetModelMatrix(const Zeus::CTransform& xf)
{
}
2016-02-11 18:36:34 -08:00
}