SFML community forums

Help => General => Topic started by: coolian on February 22, 2019, 11:32:45 pm

Title: opengl what to use instead of glbindbuffer
Post by: coolian on February 22, 2019, 11:32:45 pm
what to use instead of glBindBuffer and GL_ARRAY_BUFFER and glBufferData and likely some other functions as well
Title: Re: opengl what to use instead of glbindbuffer
Post by: eXpl0it3r on February 23, 2019, 12:15:09 am
Might want to read the "Read before posting" (https://en.sfml-dev.org/forums/index.php?topic=5559.msg36367#msg36367) thread, as it's kind of impossible to answer your non-question. ;)
Title: Re: opengl what to use instead of glbindbuffer
Post by: coolian on February 23, 2019, 12:36:24 am
i already read that but i didnt really payed attention i got a laptop with 1.1ghz intel pentium 4200n which runs win10 and has a radeon 350 with 2 gigabyte vram and8 gigabyte ram im using sfml 2.5.1 dynamic trying run the debugger gives me an error and visual studio asks me if i want to run the last succesfull compiled version the error that visualstudio gives me says Der Bezeichner ""glGenBuffers"" ist nicht definiert which is german and translates into The identifier "" glGenBuffers "" is not defined or in chinese 標識符“”glGenBuffers“”未定義 and i get the same error for glbindbuffers GL_ARRAY_BUFFER glbufferdata GL_STATIC_DRAW it also gives me this error: "glBufferData": Bezeichner wurde nicht gefunden. which in englisch means "glBufferData": Identifier not found.
i dont think code is neccesary but here are the lines in which the errors occur:glGenBuffers(1, VBO);
      glBindBuffer(GL_ARRAY_BUFFER, VBO);
      glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
my imports are:#include<iostream>
#include<SFML/OpenGL.hpp>
#include<SFML/Window.hpp>
 
pretty sure thats all u can possibly need
Title: Re: opengl what to use instead of glbindbuffer
Post by: fallahn on February 23, 2019, 12:05:41 pm
<SFML/OpenGL.hpp> will only give you the most basic OpenGL functions (version 1.0 I think). If you want to use any kind of modern OpenGL you'll need to load the correct functions via something like Glad, which you can find here: https://github.com/Dav1dde/glad or glLoadGen: https://bitbucket.org/alfonse/glloadgen/wiki/Home