Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7674143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:40:24+00:00 2026-05-31T16:40:24+00:00

I was wondering how to delete a vertex buffer object correctly in python. I

  • 0

I was wondering how to delete a vertex buffer object correctly in python. I generate my VBOs like this:

from ctypes import pointer
vbo_id = GLuint()
glGenBuffers(1, pointer(vbo_id))

From time to time I have to delete a VBO and create a new one instead. I was wondering what the correct way of deleting the VBO is? I’ve tried the following two ways but I don’t know which one is correct (and python doesn’t complain either way):

glDeleteBuffers(1, pointer(vbo_id))
or 
glDeleteBuffers(1, vbo_id)

Which call is correct? And does deleting the VBO also free the memory on the GPU?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:40:25+00:00Added an answer on May 31, 2026 at 4:40 pm

    I don’t write Python, so take it with that grain of salt, but the specification for glDeleteBuffers() takes a number of buffers and an array of buffer names. So it should probably be pointer(vbo_id). In C, it’s the same as glGenBuffers(), so I’d assume the same thing in Python. The reason being that the second parameter is an array of buffer names, not just a buffer name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering which is faster: DELETE FROM table_name WHERE X='1' DELETE FROM table_name WHERE
I was wondering if there is a possibility to catch errors like this in
I was wondering if there was any way to create a FileInputStream object from
I am wondering if i new some object but forget to delete it, when
I'm wondering if I have 2 pointers pointing same object, and then I delete
I was wondering if it is safe to do this... delete p_pointer; p_pointer =
I am wondering how I could delete an object depending on it's title for
I was just wondering if it was possible to delete an item from a
I am wondering if it is possible for an object in javascript to delete
I was wondering how to delete the values in a MySQL database table from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.