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

  • Home
  • SEARCH
  • 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 8924215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:20:59+00:00 2026-06-15T07:20:59+00:00

Well, I have been learning openGL with this tutorial: opengl-tutorial.org. That tutorial do not

  • 0

Well, I have been learning openGL with this tutorial: opengl-tutorial.org.
That tutorial do not explain how do the shaders works. I mean, is the vertex shader readed before the fragment shader?

Ok talking about the question, I want to create two objects for practice, one box (3D Square with a texture) and a pyramid (3D Triangle with a texture), I don’t know how to do it, I know how to draw it with C++/OpenGl but talking about the GLSL…. Do I need to create another program? How can I do that?

(OpenGL 3.3)

  • 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-06-15T07:21:00+00:00Added an answer on June 15, 2026 at 7:21 am

    OpenGL does not maintain “objects” in such a way as you seem to assume (the term object is used to refer to “something” internal that OpenGL uses and that you can refer to via an identifier. A vertex buffer, a texture, or a shader are all examples of “objects”). OpenGL is not a scenegraph.

    You need to create the vertex data for each of your objects in your application (or load that data from a file) and to provide OpenGL with that by feeding a buffer object with that data.

    Then you tell OpenGL to draw a number of vertices from that buffer. OpenGL does not care what that data is or how to draw it. It will only do exactly what you tell it to do. If you tell it “take this block of data that contains vertex coordinates, and now draw 5 triangles”, then it will just do that.

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

Sidebar

Related Questions

Similar questions have been asked but cannot find a solution that works well. What
Disclaimer I am well aware that PHP might not have been the best choice
I am slowly learning C, but not very well. I have been reading over
This is not homework, just a learning exercise on my part. I have been
I have been to the zotonic docs , but well, they have not really
I have a WCF service that I am consuming, and have been doing well
I have been learning iOS development for a few days now. At this moment,
I am learning rails by following the Rails Tutorial under Ubuntu. I have been
I have been learning ASP.NET MVC recently and everything is going well apart from
I have been learning opengl for about 4-5 months now. I am ready to

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.