Professional Web Applications Themes

GLUT changes in Jaguar - Mac Programming

Hi all. I've just attempted to port some of my Puma-era work to Jaguar, with some very troubling results. It seems that the GLUT support has changed, specifically in the way that it draws the window, and calls the reshape and draw functions. My projects are a little odd in that the drawing func is intended to be called once. A loop in the draw proc redraws the frames, and draws up to a specific number of frames. These are test programs, btw., and were supposed to be ...abnormal. When the draw function has completed once, the program exits. There ...

  1. #1

    Default GLUT changes in Jaguar

    Hi all. I've just attempted to port some of my Puma-era work to Jaguar,
    with some very troubling results.

    It seems that the GLUT support has changed, specifically in the way
    that it draws the window, and calls the reshape and draw functions.

    My projects are a little odd in that the drawing func is intended to be
    called once. A loop in the draw proc redraws the frames, and draws up
    to a specific number of frames. These are test programs, btw., and were
    supposed to be ...abnormal. When the draw function has completed once,
    the program exits. There is none of the usual idle and animation stuff.

    When these progs are built under Jaguar, it looks like the drawing is
    taking place, but only on the card. I'm saving the buffer contents to
    disk, and the images are correct. Thus the rendering is happening on
    the card. However, the window is never created and no renderings are
    visible.

    By futzing around with the code, it seems like the draw or redraw procs
    must be called at least once before the window is displayed, and any
    back buffer contents are swapped into it. I'm not sure ofthe specifics.

    Can anyone shed some light on this? TIA

    Mick
    Mikey Guest

  2. #2

    Default Re: GLUT changes in Jaguar

    In article <090720031234592367%Forgetforget.com>,
    Mikey <Forgetforget.com> wrote:
    > By futzing around with the code, it seems like the draw or redraw procs
    > must be called at least once before the window is displayed, and any
    > back buffer contents are swapped into it. I'm not sure ofthe specifics.
    >
    > Can anyone shed some light on this? TIA
    In general, under OS X, the window receives an update event before
    it is displayed, so TransitionWindow will have something to work
    with. I guess they just made OpenGL support more like Quickdraw and
    Quartz support.
    David Phillip Oster Guest

  3. #3

    Default Re: GLUT changes in Jaguar

    In article
    <oster-97C92E.21332509072003newssvr14-ext.news.prodigy.com>, David
    Phillip Oster <osterieee.org> wrote:
    > In article <090720031234592367%Forgetforget.com>,
    > Mikey <Forgetforget.com> wrote:
    >
    > > By futzing around with the code, it seems like the draw or redraw procs
    > > must be called at least once before the window is displayed, and any
    > > back buffer contents are swapped into it. I'm not sure ofthe specifics.
    > >
    > > Can anyone shed some light on this? TIA
    >
    > In general, under OS X, the window receives an update event before
    > it is displayed, so TransitionWindow will have something to work
    > with. I guess they just made OpenGL support more like Quickdraw and
    > Quartz support.
    It certainly looks that way. I think I have to redesign the entire
    thing. Oh well it wasn't my idea, anyway!
    Mikey Guest

Similar Threads

  1. Latest CVS for Jaguar
    By Heath in forum Mac Applications & Software
    Replies: 1
    Last Post: August 24th, 03:31 PM
  2. Upgrade to Jaguar from 10.1.5
    By Bev A. Kupf in forum Mac Applications & Software
    Replies: 4
    Last Post: July 9th, 02:34 PM
  3. OS X Jaguar / Panther
    By jlr in forum Mac Applications & Software
    Replies: 2
    Last Post: July 7th, 09:13 PM
  4. uuUndo for jaguar
    By no in forum Mac Applications & Software
    Replies: 1
    Last Post: July 6th, 02:35 PM
  5. Jaguar won't quit, 9.2.2 doesn't see Jaguar disk <?>
    By Merlin in forum Mac Applications & Software
    Replies: 0
    Last Post: June 25th, 05:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139