/// <summary> /// This helper function will automatically detect which renderer you should be using. /// WebGL is the preferred renderer as it is a lot faster. /// If webGL is not supported by the browser then this function will return a canvas renderer. /// </summary> /// <param name="width">The width of the renderers view.</param> /// <param name="height">The height of the renderers view.</param> /// <param name="options">The optional renderer parameters.</param> /// <param name="noWebGL">Prevents selection of WebGL renderer, even if such is present.</param> /// <returns>Returns WebGL renderer if available, otherwise CanvasRenderer.</returns> public static extern IRenderer AutoDetectRenderer(float width, float height, RendererOptions options = null, bool noWebGL = false);
public extern CanvasRenderer(float width = 800, float height = 600, RendererOptions options = null);