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: jamse101

Search: Search took 0.00 seconds.

  1. Thread: glViewport

    by jamse101
    Replies
    3
    Views
    1,799

    Ah...the problem was that I'm using two threads...

    Ah...the problem was that I'm using two threads and glViewport() had to be called in the rendering thread..
  2. Thread: glViewport

    by jamse101
    Replies
    3
    Views
    1,799

    I do glViewport(0, 0, LOWORD(lParam),...

    I do glViewport(0, 0, LOWORD(lParam), HIWORD(lParam)) in processing of WM_SIZE and I have:

    GLfloat triangles [6][2] = {
    { -1.0, -1.0 },
    { 1.0, -1.0 },
    { -1.0, 1.0 },
    ...
  3. Thread: glViewport

    by jamse101
    Replies
    3
    Views
    1,799

    glViewport

    I'm trying to render two triangles that will fill the whole window and I have simple pass trough vertex shader:

    #version 140

    in vec4 vVertex;

    void main()
    {
    gl_Position = vVertex;
    }
  4. Replies
    4
    Views
    2,954

    Re: glGenVertexArrays deprecated?

    I used glutGetProcAddress() to get pointer to glGenVertexArrays() and after that I got access violation for glBindVertexArray(). After getting glBindVertexArray() also the program didn't anymore...
  5. Replies
    4
    Views
    2,954

    Re: glGenVertexArrays deprecated?

    Ok, I looked into the specs and it's surely not deprecated..
  6. Replies
    4
    Views
    2,954

    Re: glGenVertexArrays deprecated?

    Yes, I have called glewInit(), here's initialization code
    from my main():

    glutInit(&argc, argv);

    glutInitContextVersion(3,0);
    //glutInitContextFlags(GLUT_FORWARD_COMPATIBLE);

    ...
  7. Replies
    4
    Views
    2,954

    glGenVertexArrays deprecated?

    I'm using freeglut 2.6.0 and GLEW 1.5.4 and if I use forward compatible context in following way:

    glutInitContextVersion(3,0);
    glutInitContextFlags(GLUT_FORWARD_COMPATIBLE);

    I get access...
  8. Replies
    2
    Views
    1,009

    Re: Modulating with modified texture

    I'm reading Redbook right now and haven't yet gotten to shading language..
  9. Replies
    2
    Views
    1,009

    Modulating with modified texture

    Is there some way to achieve following:

    C = Cf * [Cs*val + (1.0-val)];

    Using texture function or texture combiner function? Cf is fragment color, Cs texture color and val is value between 0.0...
Results 1 to 9 of 9