public SharpRenderer(Control control) { ResetColors(); Device = new SharpDevice(control, false); LoadModels(); SharpFps = new SharpFPS { FPSLimit = float.MaxValue }; Camera = new SharpCamera(SharpFps); Camera.ProjectionMatrix.AspectRatio = (float)control.ClientSize.Width / control.ClientSize.Height; SetSharpShader(); LoadTexture(); }
public SharpRenderer(Control control) { if (!SharpDevice.IsDirectX11Supported()) { MessageBox.Show("DirectX11 Not Supported"); return; } device = new SharpDevice(control); LoadModels(); aspectRatio = (float)control.ClientSize.Width / control.ClientSize.Height; sharpFPS = new SharpFPS(); sharpFPS.Reset(); SetSharpShader(device); }
////////////// // Constructor ////////////// public SharpCamera(SharpFPS sharpFPS) { _sharpFPS = sharpFPS; }