Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
with
glx.Pointers;
package body openGL.Context -- TODO: Finish this package.
is
procedure define (Self : in out Item; Profile : in openGL.surface_Profile.item'Class)
is
pragma Unreferenced (Profile);
use GlX,
glx.Pointers;
begin
if Self.glx_Context = null
then
raise Program_Error with "No openGL context";
end if;
end define;
procedure make_Current (Self : in Item; read_Surface : in Surface.item;
write_Surface : in Surface.item)
is
pragma Unreferenced (write_Surface);
Success : glx.Bool with Unreferenced;
begin
null;
end make_Current;
function glx_Context_debug (Self : in Item'Class) return glx.Context.item
is
begin
return Self.glx_Context;
end glx_Context_debug;
end openGL.Context;