summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-groups-windows-opengl.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
commit547e538476a788dfeb5974f9b8ad29441d18980b (patch)
tree00a3c7d80ee403969971bc4b814876b4399f3ada /body/fltk-widgets-groups-windows-opengl.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-widgets-groups-windows-opengl.adb')
-rw-r--r--body/fltk-widgets-groups-windows-opengl.adb30
1 files changed, 18 insertions, 12 deletions
diff --git a/body/fltk-widgets-groups-windows-opengl.adb b/body/fltk-widgets-groups-windows-opengl.adb
index da2434c..55e80b6 100644
--- a/body/fltk-widgets-groups-windows-opengl.adb
+++ b/body/fltk-widgets-groups-windows-opengl.adb
@@ -24,6 +24,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_gl_window
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -46,6 +48,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
+ -- Visibility --
+
procedure fl_gl_window_show
(S : in Storage.Integer_Address);
pragma Import (C, fl_gl_window_show, "fl_gl_window_show");
@@ -76,6 +80,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
+ -- Dimensions --
+
function fl_gl_window_pixel_h
(S : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -103,6 +109,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
+ -- OpenGL Modes --
+
function fl_gl_window_get_mode
(S : in Storage.Integer_Address)
return Mode_Mask;
@@ -136,6 +144,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
+ -- OpenGL Contexts --
+
function fl_gl_window_get_context
(S : in Storage.Integer_Address)
return Storage.Integer_Address;
@@ -190,6 +200,8 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
+ -- Drawing, Events --
+
procedure fl_gl_window_ortho
(W : in Storage.Integer_Address);
pragma Import (C, fl_gl_window_ortho, "fl_gl_window_ortho");
@@ -327,9 +339,11 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
- ---------------
- -- Display --
- ---------------
+ -----------------------
+ -- API Subprograms --
+ -----------------------
+
+ -- Visibility --
procedure Show
(This : in out GL_Window) is
@@ -368,9 +382,7 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
- ------------------
-- Dimensions --
- ------------------
function Pixel_H
(This : in GL_Window)
@@ -411,9 +423,7 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
- --------------------
-- OpenGL Modes --
- --------------------
function Get_Mode
(This : in GL_Window)
@@ -457,9 +467,7 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
- -----------------------
-- OpenGL Contexts --
- -----------------------
function Get_Context
(This : in GL_Window)
@@ -534,9 +542,7 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is
- ----------------------------------
- -- Drawing and Event Handling --
- ----------------------------------
+ -- Drawing, Events --
procedure Ortho
(This : in out GL_Window) is