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

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,568

    What you want is to use mipmapping...

    What you want is to use mipmapping (GL_LINEAR_MIPMAP_LINEAR) for minification and nearest neighbor filtering for magnification.

    Mipmapping only applies to minification. If you use it as a flag for...
  2. Thread: drawing hexagon

    by Ginkgo
    Replies
    2
    Views
    10,140

    Re: drawing hexagon

    This should do, what you want.
    It simply draws a circle with 6 Points.



    glBegin(GL_POLYGON);
    for(int i = 0; i < 6; ++i) {
    glVertex2d(sin(i/6.0*2*M_PI),
    ...
Results 1 to 2 of 2