Example #1
0
 public Game(string windowTitle, int width, int height, int renderFrequency, int updateFrequency, GameWindowSettings gameWindowSettings, NativeWindowSettings nativeWindowSettings) : base(gameWindowSettings, nativeWindowSettings)
 {
     Title           = windowTitle;
     Size            = new OpenToolkit.Mathematics.Vector2i(width, height);
     UpdateFrequency = updateFrequency;
     RenderFrequency = renderFrequency;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vector3i"/> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector2i"/> to copy components from.</param>
 public Vector3i(Vector2i v)
 {
     X = v.X;
     Y = v.Y;
     Z = 0;
 }