Enforced use of explicit private modifiers for clarity.

This commit is contained in:
Jarl Gullberg 2017-06-13 22:08:58 +02:00
parent 8b32c9aa5e
commit f240a75208
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -48,17 +48,17 @@ namespace OpenTK
#region Static attrs. #region Static attrs.
static int _GraphicsContextCount; private static int _GraphicsContextCount;
static bool _SharedContextInitialized = false; private static bool _SharedContextInitialized = false;
#endregion #endregion
#region Attributes #region Attributes
IGraphicsContext _GraphicsContext; private IGraphicsContext _GraphicsContext;
IWindowInfo _WindowInfo; private IWindowInfo _WindowInfo;
GraphicsContextFlags _GraphicsContextFlags; private GraphicsContextFlags _GraphicsContextFlags;
bool _Initialized = false; private bool _Initialized = false;
#endregion #endregion
@ -231,7 +231,7 @@ namespace OpenTK
/// <summary> /// <summary>
/// Invokes the <see cref="GraphicsContextInitialized"/> event. /// Invokes the <see cref="GraphicsContextInitialized"/> event.
/// </summary> /// </summary>
static void OnGraphicsContextInitialized() private static void OnGraphicsContextInitialized()
{ {
if (GraphicsContextInitialized != null) if (GraphicsContextInitialized != null)
GraphicsContextInitialized(null, EventArgs.Empty); GraphicsContextInitialized(null, EventArgs.Empty);
@ -246,7 +246,7 @@ namespace OpenTK
/// <summary> /// <summary>
/// Invokes the <see cref="GraphicsContextShuttingDown"/> event. /// Invokes the <see cref="GraphicsContextShuttingDown"/> event.
/// </summary> /// </summary>
static void OnGraphicsContextShuttingDown() private static void OnGraphicsContextShuttingDown()
{ {
if (GraphicsContextShuttingDown != null) if (GraphicsContextShuttingDown != null)
GraphicsContextShuttingDown(null, EventArgs.Empty); GraphicsContextShuttingDown(null, EventArgs.Empty);
@ -353,7 +353,7 @@ namespace OpenTK
/// <summary> /// <summary>
/// Initializes the <see cref="GLWidget"/> with its given values and creates a <see cref="GraphicsContext"/>. /// Initializes the <see cref="GLWidget"/> with its given values and creates a <see cref="GraphicsContext"/>.
/// </summary> /// </summary>
void Initialize() private void Initialize()
{ {
_Initialized = true; _Initialized = true;