EditorBuiltin.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System.Runtime.CompilerServices;
  2. using BansheeEngine;
  3. namespace BansheeEditor
  4. {
  5. public static class EditorBuiltin
  6. {
  7. public static SpriteTexture FolderIcon { get { return Internal_GetFolderIcon(); } }
  8. public static SpriteTexture MeshIcon { get { return Internal_GetMeshIcon(); } }
  9. public static SpriteTexture FontIcon { get { return Internal_GetFontIcon(); } }
  10. public static SpriteTexture TextureIcon { get { return Internal_GetTextureIcon(); } }
  11. public static SpriteTexture PlainTextIcon { get { return Internal_GetPlainTextIcon(); } }
  12. public static SpriteTexture ScriptCodeIcon { get { return Internal_GetScriptCodeIcon(); } }
  13. public static SpriteTexture ShaderIcon { get { return Internal_GetShaderIcon(); } }
  14. public static SpriteTexture ShaderIncludeIcon { get { return Internal_GetShaderIncludeIcon(); } }
  15. public static SpriteTexture MaterialIcon { get { return Internal_GetMaterialIcon(); } }
  16. public static SpriteTexture SpriteTextureIcon { get { return Internal_GetSpriteTextureIcon(); } }
  17. public static SpriteTexture PrefabIcon { get { return Internal_GetPrefabIcon(); } }
  18. public static SpriteTexture XBtnIcon { get { return Internal_GetXBtnIcon(); } }
  19. /// <summary>
  20. /// Returns text contained in the default "empty" shader.
  21. /// </summary>
  22. public static string EmptyShaderCode { get { return Internal_GetEmptyShaderCode(); } }
  23. /// <summary>
  24. /// Returns text contained in the default "empty" C# script.
  25. /// </summary>
  26. public static string EmptyCSScriptCode { get { return Internal_GetEmptyCSScriptCode(); } }
  27. [MethodImpl(MethodImplOptions.InternalCall)]
  28. private static extern SpriteTexture Internal_GetFolderIcon();
  29. [MethodImpl(MethodImplOptions.InternalCall)]
  30. private static extern SpriteTexture Internal_GetMeshIcon();
  31. [MethodImpl(MethodImplOptions.InternalCall)]
  32. private static extern SpriteTexture Internal_GetFontIcon();
  33. [MethodImpl(MethodImplOptions.InternalCall)]
  34. private static extern SpriteTexture Internal_GetTextureIcon();
  35. [MethodImpl(MethodImplOptions.InternalCall)]
  36. private static extern SpriteTexture Internal_GetPlainTextIcon();
  37. [MethodImpl(MethodImplOptions.InternalCall)]
  38. private static extern SpriteTexture Internal_GetScriptCodeIcon();
  39. [MethodImpl(MethodImplOptions.InternalCall)]
  40. private static extern SpriteTexture Internal_GetShaderIcon();
  41. [MethodImpl(MethodImplOptions.InternalCall)]
  42. private static extern SpriteTexture Internal_GetShaderIncludeIcon();
  43. [MethodImpl(MethodImplOptions.InternalCall)]
  44. private static extern SpriteTexture Internal_GetMaterialIcon();
  45. [MethodImpl(MethodImplOptions.InternalCall)]
  46. private static extern SpriteTexture Internal_GetSpriteTextureIcon();
  47. [MethodImpl(MethodImplOptions.InternalCall)]
  48. private static extern SpriteTexture Internal_GetPrefabIcon();
  49. [MethodImpl(MethodImplOptions.InternalCall)]
  50. private static extern SpriteTexture Internal_GetXBtnIcon();
  51. [MethodImpl(MethodImplOptions.InternalCall)]
  52. private static extern string Internal_GetEmptyShaderCode();
  53. [MethodImpl(MethodImplOptions.InternalCall)]
  54. private static extern string Internal_GetEmptyCSScriptCode();
  55. }
  56. }