Пример #1
0
 /// <summary>
 /// Creates a new WindowOptions struct.
 /// </summary>
 public WindowOptions
 (
     bool isVisible,
     Vector2D <int> position,
     Vector2D <int> size,
     double framesPerSecond,
     double updatesPerSecond,
     GraphicsAPI api,
     string title,
     WindowState windowState,
     WindowBorder windowBorder,
     bool isVSync,
     bool shouldSwapAutomatically,
     VideoMode videoMode,
     int?preferredDepthBufferBits     = null,
     int?preferredStencilBufferBits   = null,
     Vector4D <int>?preferredBitDepth = null,
     bool transparentFramebuffer      = false,
     bool isEventDriven       = false,
     IGLContext?sharedContext = null
 )
 {
     IsVisible        = isVisible;
     Position         = position;
     Size             = size;
     FramesPerSecond  = framesPerSecond;
     UpdatesPerSecond = updatesPerSecond;
     API                        = api;
     Title                      = title;
     WindowState                = windowState;
     WindowBorder               = windowBorder;
     ShouldSwapAutomatically    = shouldSwapAutomatically;
     VideoMode                  = videoMode;
     PreferredDepthBufferBits   = preferredDepthBufferBits;
     TransparentFramebuffer     = transparentFramebuffer;
     IsEventDriven              = isEventDriven;
     VSync                      = isVSync;
     SharedContext              = sharedContext;
     PreferredDepthBufferBits   = preferredDepthBufferBits;
     PreferredStencilBufferBits = preferredStencilBufferBits;
     PreferredBitDepth          = preferredBitDepth;
 }
Пример #2
0
 /// <summary>
 /// Creates a new WindowOptions struct.
 /// </summary>
 public ViewOptions
 (
     double framesPerSecond,
     double updatesPerSecond,
     GraphicsAPI api,
     bool isVSync,
     bool shouldSwapAutomatically,
     VideoMode videoMode,
     int?preferredDepthBufferBits = null,
     bool isEventDriven           = false
 )
 {
     FramesPerSecond  = framesPerSecond;
     UpdatesPerSecond = updatesPerSecond;
     API = api;
     ShouldSwapAutomatically = shouldSwapAutomatically;
     VideoMode = videoMode;
     PreferredDepthBufferBits = preferredDepthBufferBits;
     IsEventDriven            = isEventDriven;
     VSync = isVSync;
 }