GithubHelp home page GithubHelp logo

Comments (12)

sampottinger avatar sampottinger commented on August 16, 2024 1

Yeah it looks possible with JNA. I’ll look into it:

from processing4.

neilcsmith-net avatar neilcsmith-net commented on August 16, 2024

If all you want to do is nix the warning, then passing some --add-opens should do it.

from processing4.

sampottinger avatar sampottinger commented on August 16, 2024

Hey! Started poking around to see what we can do without ‘sun.java2d’. It looks hard generally speaking without JNA to migrate out. However, the JavaCL folks might have it sorted. Seems a bit excessive to include JavaCL for that but maybe could help point us in the right direction even if we don’t use the full lib. I’ll play with it a bit. All that said, not sure if knowing the graphics card is helpful anywhere else...

from processing4.

benfry avatar benfry commented on August 16, 2024

Yeah, this is a messy one because it’s old hardware (meaning that it gets less relevant as that equipment is replaced) but it was used on a lot of apple machines, so there’s a large (or at least very vocal) installed base.

Is there a JNA approach? I’d be more inclined to move that into core than OpenCL, since it’d be useful elsewhere (hidpi detection, display resolutions, menubar hacks, etc...)

from processing4.

neilcsmith-net avatar neilcsmith-net commented on August 16, 2024

@sampottinger doesn't JOGL already have an API that gives you this information?! As does LWJGL.

Still think you'll have fun trying to remove all warnings right now - and most of those are probably as safe to use for now as they ever were - ie. not! 😄

from processing4.

sampottinger avatar sampottinger commented on August 16, 2024

Thanks @neilcsmith-net! I looked into JOGL (GLProfile) and it wasn't clear to me that this information was accessible. Do you have the API reference for JOGL or LWJGL that you had in mind? Thanks!

from processing4.

neilcsmith-net avatar neilcsmith-net commented on August 16, 2024

@sampottinger well, isn't the same information available in PGraphicsOpenGL at https://github.com/processing/processing4/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L6884 This is set using the OpenGL API (JOGL or LWJGL). It's a little later checking, but early enough I think? It's where the Pi workarounds are.

from processing4.

sampottinger avatar sampottinger commented on August 16, 2024

Sorry I dropped the thread on this one... Anyway, thank you @neilcsmith-net!

Yeah I can find what I'm looking for pretty easily if I have the GL context already active. For the folks following along at home, consider this sketch:

import com.jogamp.opengl.*;

void setup() {
  size(100, 100, P3D);
  GL gl = GLContext.getCurrentGL(); 
  println(gl.glGetString(GL.GL_VENDOR));
  println(gl.glGetString(GL.GL_RENDERER));
}

void draw() {}

That said, inside Processing, this is happening up at initDisplay inside PSurfaceJOGL which I think was intended to happen before initGL. Now that I am taking a closer look though, I'm not sure if there is a reason fboAllowed has to be part of initDisplay. I'll move it and we should (?) be good to go.

from processing4.

sampottinger avatar sampottinger commented on August 16, 2024

Blocked on #73.

from processing4.

sampottinger avatar sampottinger commented on August 16, 2024

Posted possible solution at #76! :D

from processing4.

benfry avatar benfry commented on August 16, 2024

Should be fixed in cc39c94

from processing4.

github-actions avatar github-actions commented on August 16, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from processing4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.