public UWB_XNAPointLight CreatePointLight() { if (numLights < MAX_LIGHTS) { UWB_XNAPointLight tempLight = new UWB_XNAPointLight(m_LightingEffect.Parameters["lights"].Elements[numLights]); IncrementLightCount(); return tempLight; } else { UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached."); return null; } }
public UWB_XNAPointLight CreatePointLight() { if (numLights < MAX_LIGHTS) { UWB_XNAPointLight tempLight = new UWB_XNAPointLight(m_LightingEffect.Parameters["lights"].Elements[numLights]); IncrementLightCount(); return(tempLight); } else { UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached."); return(null); } }