TQASetFloat
A drawing engine must define a method to set a floating-point value for a draw context state variable.
typedef void (*TQASetFloat) ( TQADrawContext *drawContext, TQATagFloat tag, float newValue);
drawContext- A draw context.
tag- A state variable tag.
newValue- The new value of the specified state variable.
DESCRIPTION
YourTQASetFloatfunction should set the value of the draw context state variable specified by thedrawContextandtagparameters to the floating-point value specified by thenewValueparameter.Your drawing engine must accept all possible values for the
tagparameter. If you encounter a value in thetagparameter that you cannot recognize, you should do nothing. Similarly, you should do nothing if thetagparameter specifies a state variable for optional features your drawing engine does not support.SPECIAL CONSIDERATIONS
If yourTQASetFloatfunction needs to change one or more of the function pointers in the specified draw context, it must call theQARegisterDrawMethodfunction to do so. It should not directly change the fields of a draw context.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help