9/20/2023 0 Comments Java lwjgl fullscreenThis clears the back buffer (to yellow in your case) and then you immediately present the contents of this back buffer to your window with the glfwSwapBuffers command. In your loop function you do: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) you are never telling OpenGL to render anything. ![]() Foremost problem is that you are not issuing any actual OpenGL draw call, i.e. I see several issues and missing things in your approach. This time I tried this code, of couse it doesn't work (I read it on StackOverflow): public class Starter The first time, I used Sick, but it was deprecated. I have already tried to do it, but got stuck on this same problem: how render text on screen. After some months on libGDX, I chose to make a little java game library based on LWJGL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |