In long term win32 version (which is actually 64 bit in reality) should be kept on par with the qt version of win exported app. For this reason i thought that it would be good to have a place where the differences (i.e., what is missing from win32 export) are collected.
TODO:
2. media plugin
3. camera plugin
DONE:
1. application:setFullScreen() DONE (version coming after 2022.09)
2. multiple screens with Screen class DONE (version coming after 2023.02)
3. drawing tablet pressure support DONE (version coming after 2023.02)
4. midi plugin DONE (version coming after 2023.02)
5. spout plugin DONE (version coming after 2023.02)
if you write me more, i can add it, also i can state it DONE whenever it is added to win32 version too.
Comments
https://deluxepixel.com
Likes: SinisterSoft
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I think it's a very good idea to maintain a list of what features are lacking from the win32 version somewhere. Just having bug fixes in Github doesn't group these things together but this forum thread can easily get lost also. In the documentation there are currently icons showing what features work where (eg lots of things work on iOS only or Android only) so maybe that's the best place. We will need another win32 icon. And while we're at it we should say what works on the other new OS's like WinRT....
As far as media plugin is concerend I can't help as I don't know about these things. It seems some of the features can be provided by MS WIA system. If anyone out there is an expert on this, please send us a pull request. :-)
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630368(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/ms629859(v=vs.85).aspx
"multiple screens with Screen class". This was done by @hgy29, can you fix this Nico?
I think fullscreen kind of works except there is still a Windows border around the full-screen window. Is that the issue?
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
so yes, i believe win32 and a native mac export should be priorities, otherwise gideros does not fully have desktop exports.
i think it's a good idea to put in reference for each class all the platform it is supported on.
about the fullscreen issue, for me setting application to fullscreen does not have any effect at all, so it's not just a border-issue.
Likes: john26, antix, MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
EDIT: Oh, it wasn't referenced in the gplugin file. I fixed that, luasocket and sqlite were missing too: https://github.com/gideros/gideros/commit/f4150e3c2f0e9a48e32493d2d3c1e5db3a0d1257
Likes: MoKaLux
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
I am trying to fix it
for reference
- https://stackoverflow.com/questions/49608313/change-window-position-on-show-in-qtwrong references as win32 has nothing to do with Qt...
Sorry for posting here but I find the forum a great storing option
https://github.com/gideros/gideros/blob/master/libgid/src/qt/platform-qt.cpp#L197
https://github.com/gideros/gideros/blob/master/libgid/src/win32/platform-win32.cpp#L88
I wonder why it doesn't work, will have a look.
Likes: MoKaLux
Likes: MoKaLux
What I understand is:
- FXC="/c/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/fxc.exe"
- MSBUILD="/c/Program Files/Microsoft Visual Studio/2022/Community/MSbuild/Current/Bin/MSBuild.exe"
Thank you
EDIT: quote "Just had a look at win32 code to discover it has support for fullscreen and setting window size" setting window size works fine, it is the positionning that isn't implemented
Likes: MoKaLux
What is not working is with modifier: ALT+ENTER doesn't switch to fullscreen (yet).
EDIT: my naîve attempt which kinda work
win32/platform-win32.cpp;
SWP_NOSIZE
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos
console
setWindowSize: 320 x 480. hwndcopy=00480858
X SetWindowPos: 336 519 (notice I added an X before SetWindowPos )
libpng warning: iCCP: known incorrect sRGB profile
Plus I changed to SWP_NOSIZE instead of SWP_NOMOVE and I have a clean app
but it turns to dark when we resize the app.
For reference:
https://github.com/gideros/gideros/blob/master/libgid/src/win32/platform-win32.cpp
https://github.com/gideros/gideros/blob/master/luabinding/applicationbinder.h
https://github.com/gideros/gideros/blob/master/luabinding/applicationbinder.cpp
https://github.com/gideros/gideros/blob/master/desktop/sources/mainwindow.cpp
https://github.com/gideros/gideros/blob/master/win32_example/applicationmanager.cpp
https://github.com/gideros/gideros/blob/master/libgid/src/qt/platform-qt.cpp
https://github.com/gideros/gideros/blob/master/player/Sources/glcanvas.cpp
https://github.com/gideros/gideros/blob/master/win32_example/assets/main.resize.lua
https://github.com/gideros/gideros/blob/master/win32_example/assets/main.lua
Likes: MoKaLux
EDIT: Less easy than I thought... An easier fix is to call Lighting.setLight() and others similar functions that set full scene constants in shaders after an APPLICATION_RESIZE event
Likes: MoKaLux
C:\dev\gideros_hgy29\libgid\src/platform-win32.cpp
PS: I open the gideros project folder in VSCode which helps a TON learning c++
EDIT: I have a question, do we need to modify the files which are in the win32_example folder? I am a bit confused here
Likes: MoKaLux
make –f scripts/Makefile.gid qtapp.install
learning Gideros internals
EDIT: I restarted from scratch and it almost built Gideros Studio but failed at the very end with a bunch of errors/warnings:
EDIT2: I switched back to branch Commits on Oct 9, 2022 and I can build Gideros Studio and win32 template. Lesson learned, when you have "errors" (with all the respect due to c++ gurus) in your code it won't build
Likes: MoKaLux
Example for reference:
C:\dev\gideros_hgy29\libgid\src\win32\platform-win32.cpp
Question: what is the folder win32_example for? I change code inside but it seems I don't have to! can we delete it ?
EDIT2: I have added a wiki page where anyone can write c++ tips for Gideros Studio development. I posted the code that I have so far https://wiki.gideros.rocks/index.php/CPlusPlus_for_Gideros_Studio_Help
Likes: MoKaLux
Likes: MoKaLux
I have tested the following and they are ok (the ones not implemented won't crash the app):
For some reasons ALT doesn't work for me on win32 but it works fine in Qt win
Issue with win32 LFS when I try this code the app crashes:
Thank you very much hgy29 for all the work and the time you put into Gideros
Edit: don't worry too much about the folder win32_example ;-)
{aka 'std::__cxx11::basic_string'} to 'wchar_t [1024]'
EDIT: I don't think I should be posting my failed attempts here
EDIT2: more useful info