|
Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/6 17:58
#1 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/8 18:02 From Germany
Posts: 394
|
Hi.
I try to recompile the GLMatrix blanker using MiniGL 2.24. However the API of miniGL has changed since MiniGL 1.x and i need to replace some functions. I guess i have to replace MGLInit() and MGLTerm() with OpenLibrary() and CloseLibrary() calls. I do not know how to replace mglChooseWindowMode(FALSE) and mglCreateContextFromID(modeID, &w, &h). Does anyone have any advice? |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/14 16:24
#2 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@ZeroG
up |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/14 18:44
#3 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1241
|
@ZeroG
From mgl/gl.h: /* Tags for CreateContext */ #define MGLCC_Width (TAG_USER + 1) #define MGLCC_Height (TAG_USER + 2) #define MGLCC_OffsetX (TAG_USER + 3) #define MGLCC_OffsetY (TAG_USER + 4) #define MGLCC_Windowed (TAG_USER + 5) #define MGLCC_Bitmap (TAG_USER + 6) #define MGLCC_ScreenMode (TAG_USER + 7) #define MGLCC_VertexBufferSize (TAG_USER + 8) I suppose you can pass the screen mode ID to CreateContext call. |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/17 8:09
#4 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 21:56 From Copenhagen
Posts: 104
|
@ZeroG
Which version of GLMatrix are you recompiling? |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/17 8:35
#5 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 21:56 From Copenhagen
Posts: 104
|
Seems like who ever is maintaining MiniGL did not keep it backwards compatible. I my opinion that is not a good idea.
Anyway it seems like you have to switch to using the GLUT API in MiniGL |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/20 19:35
#6 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/8 18:02 From Germany
Posts: 394
|
@Capehill
Thanks. I have replaced the mglChooseWindowMode() and mglCreateContextFromID() calls with this call:
IMiniGL->CreateContextTags(MGLCC_ScreenMode, ID, MGLCC_Windowed, FALSE, MGLCC_Width, &w, MGLCC_Height, &h, TAG_DONE)
MGLInit() and MGLTerm()calls are commented out, minigl.library is opened at startup. Now I get linker errors: undefined reference to "mini_CurrentContext" @Shadow Quote: Which version of GLMatrix are you recompiling? This one. Is there another? Quote: Seems like who ever is maintaining MiniGL did not keep it backwards compatible. I my opinion that is not a good idea. That happend years ago between the latest v1.x and first v2.x version. Quote: Anyway it seems like you have to switch to using the GLUT API in MiniGL OK. How? |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/20 19:42
#7 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 12:31 From Russia
Posts: 6821
|
@ZeroG
Quote:
Added -lGL of course on linking stage? (it's in libGL.a). |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 12/21 21:26
#8 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 21:56 From Copenhagen
Posts: 104
|
@ZeroG
GLMatrix was replaced by http://os4depot.net/?function=showfil ... eenblanker/glblankers.lha Latest source code is here https://github.com/steen-lund/GLBlankers I spent some time this year upgrading to latest xscreensaver, cleaning up the code and restructuring the code so it would be easier for me to port additional blankers. Fix some resource leaks and other stuff. All the usage of the 1.5 API was already removed back then and it only uses the 2.0 API, so this should simply build and run. Disregard my comment about GLUT I thought you were looking at the latest code already. Edited by Shadow on 2020/12/21 21:47:38
|
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/5 10:20
#9 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/8 18:02 From Germany
Posts: 394
|
@Shadow
Thank you. |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/5 11:03
#10 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Shadow
Question (which may be completely unrelated, but just now it hit me) Would it ge possible to "alpha channel" the black background (which serves as "blanker" part) and let the blanker modules move in front of the normal WB instead? So it would work comparable to what CANDY does (minus the fact that it would draw over all Icons and windows). Just a stupid idea... |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/5 15:08
#11 |
---|---|---|
Site Builder
![]() ![]() Joined:
2006/12/2 23:57 From Athens/Dublin
Posts: 765
|
@raziel, I think that the blankers open their own screens. So, I doubt this is possible to be done, but I might be totally wrong.
|
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/5 21:27
#12 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 21:56 From Copenhagen
Posts: 104
|
@raziel Walkero guessed correct, the blankers open their own screen, technically they could render to an offscreen surface and blit to the workbench screen.
I have no intention of doing this, but if someone does it on an branch and create a pull request I will consider it :) |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/5 23:15
#13 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Shadow
Yeah, no problem, was a stupid idea anyway. Thanks though |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/6 8:32
#14 |
---|---|---|
Just popping in
![]() ![]() Joined:
2020/11/17 12:08 From Slough
Posts: 133
|
Do they work with the built in screen blanker manager?
|
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/6 11:41
#15 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 21:56 From Copenhagen
Posts: 104
|
@NinjaCyborg
Yes, as mentioned in the description on os4depot: Simply copy the files into SYS:Utilities/Blankers/ |
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/6 17:04
#16 |
---|---|---|
Just popping in
![]() ![]() Joined:
2020/11/17 12:08 From Slough
Posts: 133
|
Great that's awesome.
|
|
|
Re: Recompiling GLMatrix blanker with MiniGL 2.24 |
Posted on: 1/7 7:29
#17 |
---|---|---|
Just popping in
![]() ![]() Joined:
2020/11/17 12:08 From Slough
Posts: 133
|
Do these blankers supposed to work with Northern Islands Radeon card? Or needs Warp3D Nova? Because not working for me on 6450 Radeon
![]() |
|