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

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    604

    gluUnProject Question

    I set gluPerspective(45.0f, 3.0f/ 2.0f, 0.1f, 400.0f), glViewport(0, 0, 1024, 768), gluLookAt(0.0f, 0.0f, 2.1f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f), the third parameter of gluUnProject is 0.5f. I...
  2. Thread: need help

    by _student
    Replies
    3
    Views
    827

    Re: need help

    Thanks, Gollum.

    I know the problem is not code, it's my hardware.

    Thanks again. :)
  3. Thread: need help

    by _student
    Replies
    3
    Views
    827

    need help

    My video card support OpenGL1.2, I tested glTexImage3D, but it ran very slow. I don't kown the reason. Could anyone test it and tell me the result of yours, thanks. This is the code:



    #include...
  4. Replies
    2
    Views
    1,112

    Re: How to use glEdgeFlagv ?

    I drew a polygon, it combines with two small polygon, there is a line in the center of it, use glEdgeFlag can disable it, but I don't know how to use glEdgeFlagv. Could you give me an example about...
  5. Replies
    2
    Views
    1,112

    How to use glEdgeFlagv ?

    #include <gl/glew.h>
    #include <gl/glut.h>

    #include <cassert>

    GLfloat spin = 0.0;

    void change()
    {
    spin += 1.0;
  6. Replies
    1
    Views
    1,078

    How to use GLEW?

    #include <gl/glew.h>
    #include <gl/glut.h>
    //#include <gl/glprocs.h>

    static GLint vertices[] = { 25, 25,
    100, 325,
    175, 25,
    175, 325,
    250, 25,
    325, 325 };
  7. Replies
    4
    Views
    568

    Re: where to get OpenGL 2.0

    GLEW-1.2.5 can help you to use 1.2 - 2.0, but I don't know how to use it.

    http://glew.sourceforge.net
  8. Replies
    2
    Views
    1,131

    How to use GLEW 1.2.5 ?

    #include <gl/glew.h>
    #include <gl/glut.h>
    //#include <gl/glprocs.h>

    static GLint vertices[] = { 25, 25,
    100, 325,
    175, 25,
    175, 325,
    250, 25,
    325, 325 };
  9. Replies
    0
    Views
    471

    Is it in effect?

    glLightModeli(GLenum pname, TYPE param) is in OpenGL 1.1, GL_LIGHT_MODEL_COLOR_CONTROL AND GL_SEPARATE_SPECULAR_COLOR are in OpenGL 1.2. If I called
    glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL,
    ...
  10. Replies
    5
    Views
    1,254

    Re: What is the reason?

    Thanks.
  11. Replies
    5
    Views
    1,254

    Re: What is the reason?

    This is the code.

    #include <gl/glut.h>
    #include <gl/glprocs.h>

    static GLint vertices[] = { 25, 25,
    100, 325,
    175, 25,
    175, 325,
    250, 25,
  12. Replies
    5
    Views
    1,254

    Re: What is the reason?

    Thank you for your help. But if I changed GL_POLYGON to GL_LINES, the result is same.
  13. Replies
    5
    Views
    1,254

    What is the reason?

    GLuint vertexArray[] = { 0, 1, 2, 3, 4, 5 };

    glDrawRangleElements(GL_POLYGON, 2, 5, 4,
    GL_UNSIGNED_INT, vertexArray);

    But it will draw vertexArray[0123], what is the
    reason?
  14. Replies
    2
    Views
    968

    abort glDrawRangeElements

    There is a function (glDrawRangeElements) in readbook opengl v1.2, but I can not find it in gl.h, does this function exist?
  15. Thread: OpenGL1.2 SDK

    by _student
    Replies
    1
    Views
    1,776

    OpenGL1.2 SDK

    Hello, could anyone tell me how to buy the OpenGL
    1.2 SDK (C++ Version)?
Results 1 to 15 of 15