Builtin.cs 912 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Runtime.CompilerServices;
  2. namespace BansheeEngine
  3. {
  4. /// <summary>
  5. /// Contains various builtin resources that are always available.
  6. /// </summary>
  7. public static class Builtin
  8. {
  9. /// <summary>
  10. /// Returns a pure white texture.
  11. /// </summary>
  12. public static SpriteTexture WhiteTexture
  13. {
  14. get { return Internal_GetWhiteTexture(); }
  15. }
  16. /// <summary>
  17. /// Returns the default shader to be used with renderables.
  18. /// </summary>
  19. public static Shader DiffuseShader
  20. {
  21. get { return Internal_GetDiffuseShader(); }
  22. }
  23. [MethodImpl(MethodImplOptions.InternalCall)]
  24. private static extern SpriteTexture Internal_GetWhiteTexture();
  25. [MethodImpl(MethodImplOptions.InternalCall)]
  26. private static extern Shader Internal_GetDiffuseShader();
  27. }
  28. }