-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot for MacOS #7
Comments
Hello! В модуле GLPT_Cocoa.inc
и в TOpenGLView = objcclass (NSView) :
и соответственно код ниже. Так же в модуле GLPT_Cocoa.inc есть ошибка (недоработка) при инициализации окна:
для исправления пришлось изменить этот код на :
но для этого надо опять менять флаг: GLPT_WINDOW_POS_CENTER - на другое значение так же предлагаю для исправления (но это заденет основной файл, надо это или нет?) в той же функции :
и флаги в GLPT.pas :
google translate: In the GLPT_Cocoa.inc module
and in TOpenGLView = objcclass (NSView):
and accordingly the code below. Also in the GLPT_Cocoa.inc module there is an error (flaw) during window initialization:
to fix it I had to change this code to:
but for this you need to change the flag again: GLPT_WINDOW_POS_CENTER - to another value I also propose to fix it (but it will affect the main file, is it necessary or not?) in the same function:
and flags in GLPT.pas:
|
In FPC 3.2 boolean changed to "objcbool" for the Cocoa headers. |
I just submitted PR fixing it, #14 . |
I also submitted PR #15 . After #14 and #15 GLPT works now cool on macOS for me. ( I am specifically testing GLPT to adapt GLPT Cocoa code to have Cocoa support in Castle Game Engine in I'm attaching a screenshot. Feel free to add this to GLPT README etc. :) |
Can anyone with MacOS supply a screenshot of one of the example files, or of it's own project? Just make a pull request and add the image to the
image
folder and update theREADME.md
file. We are now working on the GL-version branch at the moment.The text was updated successfully, but these errors were encountered: