Search found 48 matches

by thoray
Mon Apr 26, 2021 1:39 pm
Forum: Announcements and Discoveries
Topic: Infinity 3D editor
Replies: 2
Views: 4131

Infinity 3D editor

Infinity 3D editor - A GUI editor for Infinity 3D real-time ray tracing graphics engine. Currently functions as a 3D scene editor, a 3D model viewer and as a technology demo. Also, the real-time canvas is commercially available for embedding into other applications. https://cdn.infinity3dengine.com/...
by thoray
Fri Apr 23, 2021 8:33 am
Forum: Platform Related Issues
Topic: How to properly create a wxIconBundle under Linux?
Replies: 2
Views: 3191

Re: How to properly create a wxIconBundle under Linux?

Here's my code for all three platforms. Using an icon bundle looks good with hidpi. wxIconBundle icons; #ifdef __WXMSW__ icons.AddIcon("resname_icon",0); // add icons from windows resource file #else // TODO find out how to load __WXOSX__ .icns file here // Repeat the next line for different icon si...
by thoray
Wed Apr 21, 2021 8:35 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 9
Views: 4023

Re: Glew init error with GTK3 wx 3.1.5

I tried moving glewinit() to OnSize() with " if ( !IsShownOnScreen() ) return; " test, and getting gl context in constructor like with pyramid sample but it didn't change anything. I am doing a very similar check in OnPaint() anyway. Since this code was working earlier with GTK3 I presume it is some...
by thoray
Wed Apr 21, 2021 6:09 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 9
Views: 4023

Re: Glew init error with GTK3 wx 3.1.5

No particular reason, just the way its currently done. I guess calling glewInit() could be moved to the constructor.

I really only needed GTK3 version for some testing so this is not a huge deal for me.
by thoray
Wed Apr 21, 2021 12:50 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 9
Views: 4023

Re: Glew init error with GTK3 wx 3.1.5

Because the samples do not use external libraries to enable opengl extensions.
by thoray
Wed Apr 21, 2021 11:58 am
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 9
Views: 4023

Glew init error with GTK3 wx 3.1.5

glewInit() gives "Unknown error" with WX 3.1.5 when wx is compiled with '--with-gtk=3'. It works with GTK2 and on all the other platforms. Opengl samples do work. I call glewInit() in OnPaint() for wxGLCanvas. It also used to work with older wx versions. This is Debian bullseye.
by thoray
Tue Apr 28, 2020 5:57 pm
Forum: Platform Related Issues
Topic: Blurry text on Mac
Replies: 5
Views: 1128

Re: Blurry text on Mac

Try adding:

<key>NSPrincipalClass</key>
<string>NSApplication</string>

into Info.plist. That's supposed to enable retina support. wxWidgets samples do it too, see Info.plist.in.
by thoray
Thu Apr 23, 2020 3:31 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

Why isn't deleting that compatibility section a viable workaround? Intel doesn't seem to support its HD3000 chip in Windows 10 so no fix is going to come from there.
by thoray
Thu Apr 23, 2020 11:24 am
Forum: Platform Related Issues
Topic: wxIconBundle AddIcon() from .icns file? (OSX)
Replies: 0
Views: 6167

wxIconBundle AddIcon() from .icns file? (OSX)

Is there a way to fill wxIconBundle from OSX .icns icon set file?
by thoray
Wed Apr 22, 2020 9:15 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

That solved that issue. Based on the link you provided, the cause is likely Intel's gpu driver.

Everything looked right out of the box at HiDPI at the first glance.
by thoray
Wed Apr 22, 2020 8:10 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I built my app's rc file with -DwxUSE_DPI_AWARE_MANIFEST=0 and OpenGL works as normal. Then I change that to -DwxUSE_DPI_AWARE_MANIFEST=2, which adds amd64_dpi_aware_pmv2.manifest, and re-link and run it in Win10 at normal dpi and I get OpenGL 1.1. This might be driver related, I have Intel HD 3000 ...
by thoray
Wed Apr 22, 2020 7:16 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

And I can add to those that with HiDPI manifest enabled OpenGL reports as version 1.1, which is likely Windows software renderer.
by thoray
Wed Apr 22, 2020 6:59 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

HiDPI now working after adding: '-DwxUSE_DPI_AWARE_MANIFEST=2' when compiling my project's Windows .rc file with Mingw's windres and copying in 'include/wx/msw/amd64_dpi_aware_pmv2.manifest' from wxWidgets distribution to 'include/wx/msw' at wx install prefix location. Maybe HiDPI can be enabled som...
by thoray
Wed Apr 22, 2020 3:46 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I haven't enabled anything related specifically. I've no idea what a manifest is or how to enable HiDPI in it. From what I gathered wx should do this automatically now by default since wxUSE_DPI_AWARE_MANIFEST defaults to 2 (use per monitor settings).
by thoray
Wed Apr 22, 2020 3:02 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 3370

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I tried my wx app in Win10 set to scaling factor 125% and title bar font is sharp but everything below that is scaled.

Is there something I need to do to enable HiDPI support? This with the latest wx git master.