Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
90 user(s) are online (77 user(s) are browsing Forums)

Members: 0
Guests: 90

more...

Headlines






Recompiling GLMatrix blanker with MiniGL 2.24
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?

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@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
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351
@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.

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Joined:
2006/11/27 21:56
From Copenhagen
Posts: 104
@ZeroG

Which version of GLMatrix are you recompiling?

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
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

_________________
http://www.unity3d.com
https://github.com/steen-lund -- Some stuff
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
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_ScreenModeIDMGLCC_WindowedFALSEMGLCC_Width, &wMGLCC_Height, &hTAG_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?

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 7068
@ZeroG
Quote:

Now I get linker errors:
undefined reference to "mini_CurrentContext"


Added -lGL of course on linking stage? (it's in libGL.a).

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
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
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Joined:
2006/12/8 18:02
From Germany
Posts: 394
@Shadow
Thank you.

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@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
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Site Builder
Joined:
2006/12/2 23:57
From Athens/Dublin
Posts: 1010
@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.

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
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 :)

_________________
http://www.unity3d.com
https://github.com/steen-lund -- Some stuff
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@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
   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Joined:
2020/11/17 12:08
From Slough
Posts: 214
Do they work with the built in screen blanker manager?

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
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/



   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Joined:
2020/11/17 12:08
From Slough
Posts: 214
Great that's awesome.

   Report Go to top

Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Joined:
2020/11/17 12:08
From Slough
Posts: 214
Do these blankers supposed to work with Northern Islands Radeon card? Or needs Warp3D Nova? Because not working for me on 6450 Radeon

   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project