Brucey преди 5 години
родител
ревизия
3ce23cac87
променени са 2 файла, в които са добавени 23 реда и са изтрити 9 реда
  1. 14 8
      glfwmonitor.mod/glfwmonitor.bmx
  2. 9 1
      glfwwindow.mod/glfwwindow.bmx

+ 14 - 8
glfwmonitor.mod/glfwmonitor.bmx

@@ -66,14 +66,14 @@ Type TGLFWMonitor
 	End Function
 	
 	Rem
-	bbdoc: Returns the position, in screen coordinates, of the upper-left corner of the specified monitor.
+	bbdoc: Returns the position, in screen coordinates, of the upper-left corner of the monitor.
 	End Rem
 	Method GetPos(x:Int Var, y:Int Var)
 		bmx_glfw_glfwGetMonitorPos(monitorPtr, x, y)
 	End Method
 	
 	Rem
-	bbdoc: Returns the position, in screen coordinates, of the upper-left corner of the work area of the specified monitor along with the work area size in screen coordinates.
+	bbdoc: Returns the position, in screen coordinates, of the upper-left corner of the work area of the monitor along with the work area size in screen coordinates.
 	about: The work area is defined as the area of the monitor not occluded by the operating system task bar where present.
 	If no task bar exists then the work area is the monitor resolution in screen coordinates.
 	End Rem
@@ -82,7 +82,7 @@ Type TGLFWMonitor
 	End Method
 	
 	Rem
-	bbdoc: Returns the size, in millimetres, of the display area of the specified monitor.
+	bbdoc: Returns the size, in millimetres, of the display area of the monitor.
 	about: Some systems do not provide accurate monitor size information, either because the monitor EDID data is incorrect
 	or because the driver does not report it accurately.
 	End Rem
@@ -91,7 +91,7 @@ Type TGLFWMonitor
 	End Method
 	
 	Rem
-	bbdoc: Retrieves the content scale for the specified monitor.
+	bbdoc: Retrieves the content scale for the monitor.
 	about: The content scale is the ratio between the current DPI and the platform's default DPI. This is especially
 	important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your
 	machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings.
@@ -114,7 +114,7 @@ Type TGLFWMonitor
 	End Method
 	
 	Rem
-	bbdoc: Returns an array of all video modes supported by the specified monitor.
+	bbdoc: Returns an array of all video modes supported by the monitor.
 	about: The returned array is sorted in ascending order, first by color bit depth (the sum of all channel depths) and
 	then by resolution area (the product of width and height).
 	End Rem
@@ -129,7 +129,7 @@ Type TGLFWMonitor
 	End Method
 	
 	Rem
-	bbdoc: Returns the current video mode of the specified monitor.
+	bbdoc: Returns the current video mode of the monitor.
 	about: If you have created a full screen window for that monitor, the return value will depend on whether that window is iconified.
 	End Rem
 	Method GetVideoMode:SGLFWvidmode()
@@ -152,14 +152,20 @@ Type TGLFWMonitor
 	End Method
 	
 	Rem
-	bbdoc: 
+	bbdoc: Returns the current gamma ramp of the monitor.
 	End Rem
 	Method GetGammaRamp:SGLFWgammaramp()
 		Return bmx_glfw_glfwGetGammaRamp(monitorPtr)[0]
 	End Method
 	
 	Rem
-	bbdoc: 
+	bbdoc: Sets the current gamma ramp for the monitor.
+	about: The original gamma ramp for that monitor is saved by GLFW the first time this method is called and is restored by glfwTerminate.
+
+	The software controlled gamma ramp is applied in addition to the hardware gamma correction, which today is usually an approximation
+	of sRGB gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will produce the default (usually sRGB-like) behavior.
+
+	For gamma correct rendering with OpenGL or OpenGL ES, see the GLFW_SRGB_CAPABLE hint.
 	End Rem
 	Method SetGammaRamp(ramp:SGLFWgammaramp)
 		bmx_glfw_glfwSetGammaRamp(monitorPtr, Varptr ramp)

+ 9 - 1
glfwwindow.mod/glfwwindow.bmx

@@ -408,7 +408,15 @@ Type TGLFWWindow
 	End Method
 	
 	Rem
-	bbdoc: 
+	bbdoc: Makes the OpenGL or OpenGL ES context of the window current on the calling thread.
+	about: A context must only be made current on a single thread at a time and each thread can have only a single current context at a time.
+
+	When moving a context between threads, you must make it non-current on the old thread before making it current on the new one.
+
+	By default, making a context non-current implicitly forces a pipeline flush. On machines that support
+	GL_KHR_context_flush_control, you can control whether a context performs this flush by setting the GLFW_CONTEXT_RELEASE_BEHAVIOR hint.
+
+	The window must have an OpenGL or OpenGL ES context. A window without a context will generate a GLFW_NO_WINDOW_CONTEXT error.
 	End Rem
 	Method MakeContextCurrent()
 		bmx_glfw_glfwMakeContextCurrent(windowPtr)