Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: opengl what to use instead of glbindbuffer  (Read 3168 times)

0 Members and 1 Guest are viewing this topic.

coolian

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
opengl what to use instead of glbindbuffer
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: opengl what to use instead of glbindbuffer
« Reply #1 on: February 23, 2019, 12:15:09 am »
Might want to read the "Read before posting" thread, as it's kind of impossible to answer your non-question. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

coolian

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: opengl what to use instead of glbindbuffer
« Reply #2 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

fallahn

  • Hero Member
  • *****
  • Posts: 507
  • Buns.
    • View Profile
    • Trederia
Re: opengl what to use instead of glbindbuffer
« Reply #3 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