| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- namespace BansheeEngine
- {
- /** @addtogroup Utility
- * @{
- */
- /// <summary>
- /// Contains a list of layers that can be used for controlling which <see cref="Renderable"/> is output to which
- /// camera. A maximum of 64 layers are supported.
- /// </summary>
- public static class Layers // Note: Placeholder class, need functionality to edit and persist layer names
- {
- private static string[] names;
- private static UInt64[] values;
- /// <summary>
- /// Returns the names of all available layers.
- /// </summary>
- public static string[] Names
- {
- get
- {
- if (names == null)
- {
- names = new string[64];
- for (int i = 0; i < names.Length; i++)
- names[i] = "Layer_" + i;
- }
- return names;
- }
- }
- /// <summary>
- /// Returns the values of all available layers.
- /// </summary>
- public static UInt64[] Values
- {
- get
- {
- if (values == null)
- {
- values = new UInt64[64];
- for (int i = 0; i < values.Length; i++)
- values[i] = 1UL << i;
- }
- return values;
- }
- }
- }
- /** @} */
- }
|