/
EugenyCh7
/
Puppet2D.Net
Обзор
Документация
Войти
/
EugenyCh7
/
Puppet2D.Net
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Puppet2D.Engine/GameWindows/GameWindowDefinition.cs
59 строк
2 KB
EugenyCh7
- Puppet2D.Common.csproj
24 авг 2025, 13:32
24 авг 2025, 13:32
bcb1204
Код
Авторство
О чём код?
using Puppet2D.System; using Puppet2D.Window; namespace Puppet2D.Engine.GameWindows { /// <summary> /// Definition of the game window. /// </summary> public class GameWindowDefinition { /// <summary> /// The size of the game window. /// </summary> public Vector2u WindowSize { get; set; } /// <summary> /// The title of the game window. /// </summary> public string Title { get; set; } /// <summary> /// The frequency of updating the physical world. /// </summary> public float PhysicsFrequency { get; set; } = 60; /// <summary> /// The frequency of updating the world's graphics. /// </summary> public uint RenderFrequency { get; set; } = 60; /// <summary> /// Enumeration of window creation styles. /// </summary> public Styles Styles { get; set; } = Styles.Default; /// <summary> /// Structure defining the creation settings of OpenGL contexts. /// </summary> public ContextSettings ContextSettings { get; set; } = new ContextSettings { AntialiasingLevel = 8 }; /// <summary> /// Reflection of the horizontal coordinate axis. /// </summary> public bool FlipX { get; set; } /// <summary> /// Reflection of the vertical coordinate axis. /// </summary> public bool FlipY { get; set; } /// <summary> /// The number of sub-steps, increasing the sub-step count can increase accuracy. Usually 4. /// </summary> public int SubStepCount { get; set; } = 4; } }