Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i use the core opengl core profile on macOS haxe? #2688

Open
JonnycatMeow opened this issue Feb 21, 2024 · 5 comments
Open

how do i use the core opengl core profile on macOS haxe? #2688

JonnycatMeow opened this issue Feb 21, 2024 · 5 comments

Comments

@JonnycatMeow
Copy link

i want to know how to use the opengl core profile on macos haxe

@shubh1777
Copy link

To use OpenGL core profile on macOS with Haxe and OpenFL:

  1. Install Haxe and OpenFL:
    Install Haxe from https://haxe.org/download/. Then, install OpenFL via Haxe CLI:

     haxelib install openfl
     haxelib run openfl setup
    
  2. Create an OpenFL Project:
    openfl create project MyOpenGLProject
    cd MyOpenGLProject

  3. OpenGL Access:
    Use lime.graphics.opengl.* for lower-level OpenGL control, crucial for core profile features.

  4. Configuring Core Profile on macOS:
    macOS requires Cocoa API interaction for OpenGL core profile contexts. You may need custom native code interfacing with NSOpenGLContext or a library that handles this.

  5. Community Resources:

  1. Seek Examples and Libraries:
    Explore the Haxe/OpenFL ecosystem for existing solutions.

Note: Modifying OpenFL/Lime for a specific OpenGL context on macOS can be complex. Community forums and Discord are great for advice and shared experiences.

@shubh1777
Copy link

is the above explanation correct?

@JonnycatMeow
Copy link
Author

sorry let me test this and see if it works

@JonnycatMeow
Copy link
Author

uhh actually can you please make me a sample i don't really know much about haxe code hahaha

@shubh1777
Copy link

This is basic approach try to run the above command in your terminal or command prompt after installing haxe.

If you're new to Haxe, OpenFL, or OpenGL, consider starting with OpenFL samples and tutorials to get a feel for how the framework works. Once comfortable, gradually introduce OpenGL calls to your rendering logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants