metaforce/Runtime/CGraphics.cpp

59 lines
1.2 KiB
C++
Raw Normal View History

2016-02-12 02:36:34 +00:00
#include "CGraphics.hpp"
#include <Math.hpp>
namespace Retro
{
u32 CGraphics::g_NumLightsActive = 0;
ERglLight CGraphics::g_LightActive = ERglLight::None;
ERglLight CGraphics::g_LightsWereOn = ERglLight::None;
2016-02-13 00:57:09 +00:00
Zeus::CTransform CGraphics::g_ViewMatrix;
2016-02-12 02:36:34 +00: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-13 00:57:09 +00: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-12 02:36:34 +00:00
}