Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
145 user(s) are online (137 user(s) are browsing Forums)

Members: 0
Guests: 145

more...

Support us!

Headlines

 
  Register To Post  

Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
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?

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Home away from home


See User information
@ZeroG

up

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Just popping in


See User information
@ZeroG

Which version of GLMatrix are you recompiling?

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Just popping in


See User information
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

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
@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?

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Just popping in


See User information
@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
Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
@Shadow
Thank you.

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Home away from home


See User information
@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...

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Site Builder
Site Builder


See User information
@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.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Just popping in


See User information
@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 :)

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Home away from home
Home away from home


See User information
@Shadow

Yeah, no problem, was a stupid idea anyway.
Thanks though

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
Do they work with the built in screen blanker manager?

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Just popping in
Just popping in


See User information
@NinjaCyborg

Yes, as mentioned in the description on os4depot:

Simply copy the files into SYS:Utilities/Blankers/



Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
Great that's awesome.

Go to top
Re: Recompiling GLMatrix blanker with MiniGL 2.24
Not too shy to talk
Not too shy to talk


See User information
Do these blankers supposed to work with Northern Islands Radeon card? Or needs Warp3D Nova? Because not working for me on 6450 Radeon

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project