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 6948171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:47:14+00:00 2026-05-27T13:47:14+00:00

I am trying to switch my OpenGL application from the old fixed function system

  • 0

I am trying to switch my OpenGL application from the old fixed function system to using Vertex Buffer Objects. However, with my current setup nothing is displaying on the screen. I’m sure I’m making some simple error, but I can’t see it.

gltest.h
gltest.cpp

model and index hold the IDs for my vbo and ibo respectively. The buffer objects are set up in the GLTest::makeModel method. The struct i’m using to store vertex data has 3 floats for the position, followed by 4 unsigned chars for the color.

It creates three vertices arranged in a triangle, and the buffer object simply contains the numbers 0,1,and 2. I call the method with a QRgb object containing the color blue, so with this setup, I would expect to see a blue triangle displayed on screen. Instead, nothing is displayed.

A full Qt project which shows the error is available here. You will need GLEW installed.

  • 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-27T13:47:14+00:00Added an answer on May 27, 2026 at 1:47 pm

    I never programmed with the fixed-pipeline versions of OpenGL, but I’ve been doing lots of work in v3.0+, so take my advice carefully!

    You seem to be mixing old and new together, for example you don’t have a vertex or fragment shader loaded. Your glEnableClientState(), glMatrixMode(), glLoadIdentity(), glVertexPointer(), glColorPointer() are depreciated in modern OpenGL; having been replaced by shader functionality.

    Also whenever I get stuck with this sort thing, I litter my gl calls with glGetError(), you only have one.

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

Sidebar

Related Questions

I've been trying to switch from using PerlSetEnv to using custom configuration directives .
Background Trying to switch from using Interceptor to Events. I have a ValidationInterceptor that
I am trying to switch from using a JFileChooser to a FileDialog when my
I've been trying to switch over to PowerShell from my old favorite 4NT. It's
I am trying to switch my Rails TEST environment from SQLite3 to Postgresql. However,
I am trying to switch from using Python 2.6.5 to using Python 3.2a2. I
Trying to convince someone to switch from .NET 1.1 I saw people saying that
I'm trying to convince a friend of mine to switch from OCaml to F#,
I'm trying to switch views in an iPhone application, but whenever I click on
I'm trying to switch from Pyramid to Django for a small project. The website

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.