Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: LReiter

Search: Search took 0.00 seconds.

  1. Do you mean glUseProgram()? I'm doing that. It's...

    Do you mean glUseProgram()? I'm doing that. It's basically

    glUseProgram(gl_fragment_shader_program);
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D,...
  2. Thanks very much so far. :) Excuse my...

    Thanks very much so far. :) Excuse my tediousness. ;)
    The shaders are stored in strings:

    const char* gl_vertex_shader_code =
    "#version 330 core\n"
    "\n"
    "layout(location = 0) in vec3...
  3. glGetUniformLocation always causes GL_INVALID_VALUE

    Hey everyone,
    I'm trying to get my openGL code to work with the Oculus Rift.
    I'm using a (slightly) modified version of this code, particularly regarding the shaders.
    However, the calls to...
  4. glutSolidSphere won't work after updating IDE

    Hi everyone,
    I recently updated to Qt5.1.1 from Qt5.0.2. Since I did this, my formerly fine working code mysteriously doesn't do what it's supposed to anymore.
    Basically I'm displaying...
  5. Well, for now I decided to not focus on the...

    Well, for now I decided to not focus on the double buffering (might as well do it as soon as I get the "simpler" way to work, I think).
    My problem is still that I'm initializing the array of spheres...
  6. Okay, thanks for the tip, but adding...

    Okay, thanks for the tip, but adding
    glutInitDisplayMode(GLUT_DOUBLE);
    in my initializeGL() function and
    glutSwapBuffers();
    in my paintGL() function simply causes the program to crash.
    After...
  7. Thank you. A swapBuffers() call as well as a...

    Thank you. A swapBuffers() call as well as a SwapBuffers(hDC) call will result in a completely black background (as opposed to my default glClearColor() grey). I think I'm only drawing in one buffer...
  8. Thanks for the tip! However, if I call the...

    Thanks for the tip! However, if I call the constructor with an 'r', it does produce a red sphere.
    I also attached a qDebug to the drawSphere() function to see which color sphere is drawn when.
    It...
  9. Drawing a sphere and recoloring and/or deleting it

    Hey all,
    for an university project I am trying to write a program that shows a couple of white spheres that turn red one by one, each time the mouse is clicked. However, I can't get it to work...
Results 1 to 9 of 9