Results 1 to 2 of 2

Thread: get the POLYGON MODE

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    Concord, CA, USA
    Posts
    19

    get the POLYGON MODE

    Hi,

    I have been trying to get the poygon mode from opengl. How do we get the proper GLenum
    value for the 2 symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, or filled polygons.

    Code:
    GLint polygonMode[2];
    glGetIntegerv(GL_POLYGON_MODE, polygonMode);

    Can anyone tell how do we get thhat 2 constants?

    R.B
    R.B

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: get the POLYGON MODE

    GLint polygonMode;
    glGetIntegerv(GL_POLYGON_MODE, &polygonMode);

    if ( polyMode == GL_LINE )
    ;//
    if ( polyMode == GL_FILL )
    ;//
    if ( polyMode == GL_POINTS )
    ;//

Similar Threads

  1. Get actual polygon rasterization mode inside shaders?
    By Pivonka in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-01-2019, 12:51 PM
  2. flickering in wireframe, polygon-mode GL_LINE
    By Oldani in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-21-2011, 01:57 AM
  3. Polygon mode display in GLUT
    By avanindra in forum OpenGL: General
    Replies: 2
    Last Post: 02-22-2009, 08:45 AM
  4. POLYGON mode problem
    By diegoy84 in forum OpenGL: User Software
    Replies: 3
    Last Post: 05-10-2007, 06:26 PM
  5. Polygon smooth mode
    By yossi in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-22-2001, 09:50 AM

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