Results 1 to 4 of 4

Thread: how to draw point

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    2

    how to draw point

    glPolygonMode(GL_FRONT_AND_BACK,GL_POINT);
    glPointSize(5.0);
    glBegin(GL_POINT);
    glVertex3f(**)
    glEnd();

    the point does not appear.
    is there any wrong in the above code?

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    17

    Re: how to draw point

    Maybe you are not setting ortho or glperspective right? What is ii?

    Jess

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: how to draw point

    Hi !

    If it's not a typo, then try GL_POINTS instead (with an 'S' at the end), should work much better.

    Mikael

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    2

    Re: how to draw point

    it works!

    thanks a lot!

    Originally posted by mikael_aronsson:
    Hi !

    If it's not a typo, then try GL_POINTS instead (with an 'S' at the end), should work much better.

    Mikael

Similar Threads

  1. Draw a point or circle with X,Y coordinate from fragment shader
    By lummxx in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-03-2015, 11:54 PM
  2. vertex and pixel shader to draw a point as sphere
    By satya in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-03-2011, 03:10 PM
  3. How to draw point by point
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-08-2003, 06:49 AM
  4. How do you draw wire frame lines from point to point?
    By HAMCircuitsWillBearMyName in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-27-2001, 08:58 PM
  5. Draw a point with a mouse click
    By Dr. Lecter in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2000, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean