![]() I separated loading of shaders trying to prevent some distraction. I did my best to make the example as small as possible, but a "hello world" with OpenGL requires quite a big piece of code (200 lines in the case). I removed everything leaving only loading shaders, drawing the line and catching input events. So here I don't understand what slows down my application.Ĭode is here. Know someone who can answer Share a link to this question via email, Twitter, or Facebook.Provide details and share your research But avoid Asking for help, clarification, or responding to other answers.Making statements based on opinion back them up with references or personal experience.Browse other questions tagged c opengl draw paint glut. For example if I select files in my file explorer I don't see such delay of a selection rectangle so it sticks right to the cursor. The problem is that the line doesn't stick to the cursor. Update the coordinates of the vertieces.ĥ. Load shader which in fact just a white pixel.Ĥ. ![]() Put data for 2 vertices (-1, 1, 0) and (-1, -1, 0) into array buffer for dynamic drawing.Ģ. ![]() I want to add an ability to select some range of a plot and zoom it. I'm trying to implement an application which accepts a bunch of points and draws a plot. If you know where I can ask such question please tell me. ![]() I'm not sure if the forum is the right place to ask for some help about graphics programming but I have no idea where I can ask for it as my code is a piece of Rust code. I'm learning OpenGL with Rust so I've got a question rather about OpenGL than Rust. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |