From: Keith W. <ke...@va...> - 2000-10-30 21:08:56
|
Brian Paul wrote: > > > Rather than attempting to call callbacks for every piece of state in an > > attribute, consider adding: > > > > ctx->Driver.NotifyStateChange( GLcontext *ctx, GLuint newstate ) > > > > or, for consistency: > > > > ctx->Driver.Wakeup( GLcontext *ctx, GLuint newstate ) > > How are these functions different from ctx->Driver.UpdateState()? > > Also, how is the newstate parameter different from ctx->NewState? Differ in semantics: UpdateState is called all the time, even when the callbacks are called. Wakeup would be called without the callbacks having been called. Thus we wouldn't have to call the callbacks from PopAttrib, for instance. The flags in the parameter have the same meanings. Keith |