Results 1 to 2 of 2

Thread: Allocation and release of GLUquadricObj!

  1. #1
    Member Newbie
    Join Date
    Jul 2001
    Location
    boston, ma, usa
    Posts
    30

    Allocation and release of GLUquadricObj!

    Are the gluNewQuadric and gluDeleteQuadric rendering-context-dependent? Should them be called only after wglMakeCurrent(*, *)?

    Moreover, can one GLUquadricObj be used to render many different objects,such as
    gluSphere(ob, ...);
    gluCylinder(ob, ...); //'ob' is the same

    Thx


    [This message has been edited by jxruan (edited 08-29-2001).]

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

    Re: Allocation and release of GLUquadricObj!

    Hi !

    You can allocate one and use it for all rendering as long as you don't change the attributes.

    As far as I know you can allocate it at any time, it's just a structure that keeps some information about the current attributes.

    Mikael


    [This message has been edited by mikael_aronsson (edited 08-30-2001).]

Similar Threads

  1. Reusing GLUquadricObj
    By Drazurh in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-15-2017, 01:00 PM
  2. Max mem allocation
    By nachovall in forum OpenCL
    Replies: 2
    Last Post: 03-07-2011, 08:15 AM
  3. help with GLUquadricOBJ
    By ForumJP in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-15-2004, 10:16 AM
  4. GLUquadricObj use question
    By cg-hci_novice in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-18-2003, 01:27 AM
  5. GLUquadricObj display
    By hapcafe in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-11-2002, 07: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