Merge pull request #7 from status-im/opengl

Enable OpenGL
This commit is contained in:
Iuri Matias 2020-07-16 11:07:09 -04:00 committed by GitHub
commit 47207e4f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.}
# QCoreApplication
proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_initialize_opengl() {.cdecl, dynlib: dynLibName, importc.}
# QApplication
proc dos_qapplication_create(appName: cstring) {.cdecl, dynlib: dynLibName, importc.}

View File

@ -1,5 +1,8 @@
proc enableHDPI*() =
dos_qapplication_enable_hdpi()
proc initializeOpenGL*() =
dos_qapplication_initialize_opengl()
proc applicationDirPath*(app: QCoreApplication): string =
let str = dos_qcoreapplication_application_dir_path()