Scoped enums.

This commit is contained in:
Leonardo Zide
2020-04-18 19:45:21 -07:00
parent a5c2e617d5
commit 5a76f4c870
6 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
// New omni light.
lcLight::lcLight(float px, float py, float pz)
: lcObject(LC_OBJECT_LIGHT)
: lcObject(lcObjectType::Light)
{
Initialize(lcVector3(px, py, pz), lcVector3(0.0f, 0.0f, 0.0f));
UpdatePosition(1);
@@ -22,7 +22,7 @@ lcLight::lcLight(float px, float py, float pz)
// New directional or spot light.
lcLight::lcLight(float px, float py, float pz, float tx, float ty, float tz)
: lcObject(LC_OBJECT_LIGHT)
: lcObject(lcObjectType::Light)
{
Initialize(lcVector3(px, py, pz), lcVector3(tx, ty, tz));
mState |= LC_LIGHT_SPOT;