You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My computer system is MacOS (M1). If I run the project directly, I only see the background color, not the cube. (I'm running fine on Windows). I checked the data and said that after OpenGL3.0, if you use core mode, you must use VAO. But I don't see that in the code.
Add the following statement to MacOS to make it work:
val vaoId: Int = GL30.glGenVertexArrays()
GL30.glBindVertexArray(vaoId)
val clock = Clock()
while (!canvas.shouldClose()) {
renderer.render(scene, camera)
box.rotation.x += 1f * clock.getDelta().toFloat()
}
The text was updated successfully, but these errors were encountered:
My computer system is MacOS (M1). If I run the project directly, I only see the background color, not the cube. (I'm running fine on Windows). I checked the data and said that after OpenGL3.0, if you use core mode, you must use VAO. But I don't see that in the code.
Add the following statement to MacOS to make it work:
The text was updated successfully, but these errors were encountered: