Comments (5)
This is actually documented behavior of GLFW on macOS (link)
Might be helpful to link to the GLFW FAQ in the README so issue reports like this don't happen again 😅
EDIT: Forgot to mention that I tested the instructions in the FAQ and they successfully create a 4.1 context (although my textures don't seem to load, but that's a different thing entirely because of the API differences)
from kgl.
kgl-opengl can load functions from 3.2. I've tested this on at least three macs. Are you experiencing any specific issues with function loading?
from kgl.
It can load the functions, but the context version returned from glGetString(GL_VERSION)
is 2.1 when using GLFW (ie initializing context without specifying version). This may affect shader compilation, although I'm not sure about that. Would need to test.
Relevant stack overflow link: https://stackoverflow.com/a/26982694
from kgl.
Update after a bit more research:
- The latest version on OpenGL supported by Apple seems to be 4.1 (link), which is better than I thought.
- Despite that, if the context is initialized as 2.1, my
#version 330
shader does not compile because version 330 is not supported.
Calling glutInitDisplayMode(GLUT_3_2_CORE_PROFILE)
from the OpenGL3 platform lib get a glGetString(GL_VERSION)
result of 4.1, otherwise the context version is similarly defaulted to 2.1. Not sure what the implications of that are.
from kgl.
I'll try and also look into this but without a Mac it'll take me a while. It should just mean updating the Loader
class for the macosMain
sourceSet.
from kgl.
Related Issues (20)
- Vulkan pNext DSL HOT 1
- Upgrade to the latest kotlin version HOT 11
- No conversion from cinterop types to Kotlin types done by code generator HOT 7
- GLFW KeyboardKey `value` and `from` are internal preventing easy conversion from GLFW to custom class HOT 3
- Can't compile with version kgl-opengl 0.1.9-dev-6, compiler crash HOT 3
- How can one best contribute to this library? HOT 2
- `kgl-stb` doesn't not have a "load from file" function HOT 2
- Best approach for a kgl-math library? HOT 24
- Update KGL to Kotlin 1.3.70 HOT 5
- kgl-stb: cstb.stbi_load and STBImage.load both crash on Windows 10 HOT 3
- GLFW and multi-threading
- can't switch from fullscreen to windowed mode HOT 3
- move to new maven repository due to Bintray shutdown HOT 5
- What about updates and development? HOT 6
- can't resolve kgl-glfw-static library HOT 4
- Could not find io.ktor:ktor-io:1.4.0. HOT 2
- Port KGL to Kotlin 1.8.21
- Provide multiplatform stb bindings. HOT 1
- Vulkan Code Generation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kgl.