• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa, OpenGL, and Display Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa, OpenGL, and Display Lists


  • Subject: Cocoa, OpenGL, and Display Lists
  • From: Jesse Thompson <email@hidden>
  • Date: Sat, 17 Jul 2004 20:35:57 -0700

I'm attempting to setup a display list, and then call it in my
drawRect function whenever my alarm fires. Now, drawRect is being
called per alarm fire as it should, and my glCallList function is
inside of drawRect, but for some reason the display list is only being
called twice, even though drawRect is being called every 0.004
seconds.

Code for initGL:

theSun = glGenLists(1);
glNewList( theSun, GL_COMPILE );
sun->Draw( light_position );
glEndList();

Code for drawRect:

glCallList( theSun );

Like I said, drawRect is being called as it should, but my display
lists' drawing function is only being called twice.

Please help
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Cocoa, OpenGL, and Display Lists
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Cocoa semantics
  • Next by Date: Re: Expression parsing
  • Previous by thread: Re: Encrypting Network Traffic over DO
  • Next by thread: Re: Cocoa, OpenGL, and Display Lists
  • Index(es):
    • Date
    • Thread