description = "GLOBE_3D: GL Object Based Engine for 3D"

name = "globe_3d"

version = "2025.04.18"

licenses = "MIT"

tags = [ "gl", "opengl",
         "rendering",
         "graphics",
         "3d-engine", "3d-graphics", "3d-rendering",
         "space-partition",
         "collision",
         "portal" ]
          
website = "https://github.com/zertovitch/globe-3d"

authors = ["Gautier de Montmollin"]
maintainers = ["gdemont@hotmail.com"]
maintainers-logins = ["zertovitch"]

long-description = """
GLOBE_3D is a real-time 3D Engine written in Ada, based on OpenGL.

&nbsp;       <a target="_blank" href="https://globe3d.sourceforge.io/g3d/dem2.jpg"><img src="https://globe3d.sourceforge.io/g3d/dem2mini.png" border="1" alt="GLOBE_3D screenshot" width="auto" height="111"></a>
&nbsp;       <a target="_blank" href="https://globe3d.sourceforge.io/g3d/dem5.jpg"><img src="https://globe3d.sourceforge.io/g3d/dem5mini.jpg" border="1" alt="GLOBE_3D screenshot" width="auto" height="111"></a>
&nbsp;       <video width="auto" height="111" controls><source src="https://globe3d.sourceforge.io/g3d/borgstar.mp4" type="video/mp4"></video>
&nbsp;       <video width="auto" height="111" controls><source src="https://globe3d.sourceforge.io/g3d/gloom.mp4"    type="video/mp4"></video>

  * Real-time rendering
  * Full eye movements and rotations ("6D")
  * Displays combinations of colours, materials, textures
  * Multitexturing
  * Transparency
  * Portal rendering
  * Binary space partition (BSP)
  * Collision detection
  * Screenshots (.bmp) and video captures (.avi)
  * Input-output of 3D objects
  * Import from 3D Studio Max, id Software Radiant, VRML, Wavefront formats
  * Tests, tools and demos included
  * License: MIT
  * **Free**, Open-Source
"""

project-files = [ "demo/globe_3d_demos_project_tree.gpr" ]

executables = [
"globe_3d_demo",
"mini_3d"
]

[gpr-externals]
G3D_Build_Mode = ["debug", "fast", "small"]

[gpr-set-externals]
GID_Build_Mode = "Debug"
Zip_Build_Mode = "Debug"

[available.'case(os)']
macos   = true
windows = true
'...'   = false

[gpr-set-externals.'case(os)']
macos   = { G3D_OS = "macosx" } 
windows = { G3D_OS = "win64" }

[[depends-on]]
gid = ">=13.0.1"
[[depends-on]]
zipada = ">=61.0.0"

[origin]
url = "https://sourceforge.net/projects/globe3d/files/globe_3d_release_2025-04-18.zip"
hashes = ["sha512:cfb3da85893115989bd7d3489da5ed8aa9a8061a906c5b13f55683a0b542cf256f514086cb3274c38f75e34a4159dbbf73289fd55f373114d23ea01627707333"]
