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,64 @@
with
"opengl_core",
"../private/freetype/library/freetype",
"collada",
"lace_shared";
--library
project Opengl
is
type Profile is ("safe", "lean", "desk");
The_Profile : Profile := external ("opengl_profile", "lean");
for Create_Missing_Dirs use "True";
for Object_Dir use "build";
for Library_Dir use "lib";
-- for Library_Name use "opengl";
case The_Profile is
when "safe" =>
for Source_Dirs use ("../source/safe");
when "lean" =>
for Source_Dirs use ("../source/lean",
"../source/lean/buffer",
"../source/lean/geometry/**",
"../source/lean/light",
"../source/lean/model",
"../source/lean/renderer",
"../source/lean/shader",
"../source/lean/support",
"../source/lean/text",
"../source/lean/io",
"../source/lean/text/private");
when "desk" =>
for Source_Dirs use ("../source/lean",
"../source/lean/buffer",
"../source/lean/geometry/**",
"../source/lean/light",
"../source/lean/model",
"../source/lean/renderer",
"../source/lean/shader",
"../source/lean/support",
"../source/lean/text",
"../source/lean/io",
"../source/lean/text/private",
"../source/desk");
end case;
package Builder renames Lace_shared.Builder;
package Binder renames Lace_shared.Binder;
package Compiler is
for Default_Switches ("ada") use Lace_shared.Compiler_Options;
for Switches ("opengl-io.adb") use ("-O0");
end Compiler;
package Linker
is
for Linker_Options use ("-g", "-lEGL", "-lGLESv2", "-lSDL2");
end Linker;
end Opengl;

View File

@@ -0,0 +1,44 @@
with
"../private/gl/library/gl",
"../private/gid/gid",
"math",
"lace_shared";
--library
project Opengl_Core
is
type Platform is ("egl", "glx", "osmesa");
The_Platform : Platform := external ("opengl_platform", "egl");
for Create_Missing_Dirs use "True";
for Object_Dir use "build";
for Library_Dir use "lib";
-- for Library_Name use "opengl_core";
case The_Platform is
when "egl" => for Languages use ("Ada");
when "glx" => for Languages use ("Ada", "C");
when "osmesa" => for Languages use ("Ada", "C");
end case;
for Source_Dirs use ("../source",
"../source/profile/" & external ("opengl_profile", "lean"),
"../source/platform/" & external ("opengl_platform", "egl"),
"../source/platform/" & external ("opengl_platform", "egl") & "/private",
"../source/platform/" & external ("opengl_platform", "egl") & "/private/thin");
package Builder renames Lace_shared.Builder;
package Compiler is
for Default_Switches ("ada") use Lace_shared.Compiler_Options;
for Switches ("opengl-images.adb") use ("-O0");
end Compiler;
package Binder renames Lace_shared.Binder;
end Opengl_Core;

View File

@@ -0,0 +1,24 @@
with
"opengl",
"sdlada",
"lace_shared";
--library
project openGL_Demo
is
for Create_Missing_Dirs use "True";
for Source_Dirs use ("../source/demo");
for Object_Dir use "build";
for Library_Dir use "lib";
-- for Library_Name use "openGL_Demo";
package Builder renames Lace_shared.Builder;
package Compiler
is
for Default_Switches ("ada") use Lace_shared.Compiler_Options;
for Switches ("opengl-images.adb") use ("-O0");
end Compiler;
end openGL_Demo;