Created
October 26, 2025 21:15
-
-
Save antonc27/d72935db037934aa60b3615c1a9a0130 to your computer and use it in GitHub Desktop.
FPC test GL function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program TestGLMac; | |
| uses GL; | |
| begin | |
| WriteLn('Pascal program starting...'); | |
| WriteLn('This program will call a function from the GL unit.'); | |
| WriteLn('Calling glClearColor(1.0, 0.0, 1.0, 1.0)...'); | |
| glClearColor(1.0, 0.0, 1.0, 1.0); // Set clear color to magenta | |
| WriteLn('Call successful. Program linked against OpenGL.'); | |
| WriteLn('Program finished.'); | |
| end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment