Please consider a donation to the Higher Intellect project. See https://preterhuman.net/donate.php or the Donate to Higher Intellect page for more info.

Changes

Jump to navigation Jump to search
4,263 bytes added ,  15:38, 24 September 2020
no edit summary
Line 71: Line 71:  
* [[Graphical Truffles: Making the Most of QuickDraw 3D]]
 
* [[Graphical Truffles: Making the Most of QuickDraw 3D]]
 
* [[The Basics of QuickDraw 3D Geometries]]
 
* [[The Basics of QuickDraw 3D Geometries]]
 +
 +
=Summary of QuickDraw 3D=
 +
 +
<h2>C Summary</h2>
 +
 +
<h3>Constants</h3>
 +
 +
<h4>Gestalt Selector and Response Values</h4>
 +
<pre>
 +
enum {
 +
  gestaltQD3D                      = 'qd3d',
 +
  gestaltQD3DNotPresent            = 0,
 +
  gestaltQD3DAvailable            = 1
 +
}
 +
</pre>
 +
 +
<h4>Basic Constants</h4>
 +
<pre>
 +
typedef enum TQ3Boolean {
 +
  kQ3False,
 +
  kQ3True
 +
} TQ3Boolean;
 +
typedef enum TQ3Status {
 +
  kQ3Failure,
 +
  kQ3Success
 +
} TQ3Status;
 +
typedef enum TQ3Axis {
 +
  kQ3AxisX,
 +
  kQ3AxisY,
 +
  kQ3AxisZ
 +
} TQ3Axis;
 +
</pre>
 +
 +
<h3>QuickDraw 3D Routines</h3>
 +
 +
<h4>Initializing and Terminating QuickDraw 3D</h4>
 +
<pre>
 +
TQ3Status Q3Initialize(void);
 +
TQ3Status Q3Exit(void);
 +
TQ3Boolean Q3IsInitialized(void);
 +
</pre>
 +
 +
<h4>Getting Version Information</h4>
 +
<pre>
 +
TQ3Status Q3GetVersion(unsigned long *majorRevision,
 +
unsigned long *minorRevision);
 +
</pre>
 +
 +
<h4>Managing Sets</h4>
 +
<pre>
 +
TQ3SetObject Q3Set_New(void);
 +
TQ3ObjectType Q3Set_GetType(TQ3SetObject set);
 +
TQ3Status Q3Set_Add(TQ3SetObject set,
 +
TQ3ElementType type,
 +
const void *data);
 +
TQ3Status Q3Set_Get(TQ3SetObject set,
 +
TQ3ElementType type,
 +
void *data);
 +
TQ3Boolean Q3Set_Contains(TQ3SetObject set, TQ3ElementType type);
 +
TQ3Status Q3Set_GetNextElementType (
 +
TQ3SetObject set, TQ3ElementType *type);
 +
TQ3Status Q3Set_Empty(TQ3SetObject target);
 +
TQ3Status Q3Set_Clear(TQ3SetObject set, TQ3ElementType type);
 +
</pre>
 +
 +
<h4>Managing Shapes</h4>
 +
<pre>
 +
TQ3ObjectType Q3Shape_GetType(TQ3ShapeObject shape);
 +
TQ3Status Q3Shape_GetSet(TQ3ShapeObject shape, TQ3SetObject *set);
 +
TQ3Status Q3Shape_SetSet(TQ3ShapeObject shape, TQ3SetObject set);
 +
</pre>
 +
 +
<h4>Managing Strings</h4>
 +
<pre>
 +
TQ3ObjectType Q3String_GetType(TQ3StringObject stringObj);
 +
TQ3StringObject Q3CString_New(const char *string);
 +
TQ3Status Q3CString_GetLength(TQ3StringObject stringObj,
 +
unsigned long *length);
 +
TQ3Status Q3CString_GetString(TQ3StringObject stringObj,
 +
char **string);
 +
TQ3Status Q3CString_SetString(TQ3StringObject stringObj,
 +
const char *string);
 +
TQ3Status Q3CString_EmptyData(char **string);
 +
</pre>
 +
 +
<h2>Errors, Warnings, and Notices</h2>
 +
<table border="0" cellpadding="3"><td><code>kQ3ErrorInternalError</code><td>&nbsp;<tr>
 +
<td>kQ3ErrorNoRecovery<td>&nbsp;<tr>
 +
<td>kQ3ErrorNotInitialized<td>&nbsp;<tr>
 +
<td>kQ3ErrorAlreadyInitialized<td>&nbsp;<tr>
 +
<td>kQ3ErrorUnimplemented<td>&nbsp;<tr>
 +
<td>kQ3ErrorRegistrationFailed<td>&nbsp;<tr>
 +
<td>kQ3ErrorMemoryLeak<td>&nbsp;<tr>
 +
<td>kQ3ErrorOutOfMemory<td>&nbsp;<tr>
 +
<td>kQ3ErrorNULLParameter<td>&nbsp;<tr>
 +
<td>kQ3ErrorParameterOutOfRange<td>&nbsp;<tr>
 +
<td>kQ3ErrorInvalidParameter<td>&nbsp;<tr>
 +
<td>kQ3ErrorInvalidData<td>&nbsp;<tr>
 +
<td>kQ3ErrorAcceleratorAlreadySet<td>&nbsp;<tr>
 +
<td>kQ3ErrorInvalidObject<td>&nbsp;<tr>
 +
<td>kQ3ErrorInvalidObjectType<td>&nbsp;<tr>
 +
<td>kQ3ErrorInvalidObjectName<td>&nbsp;<tr>
 +
<td>kQ3ErrorObjectClassInUse<td>&nbsp;<tr>
 +
<td>kQ3ErrorAccessRestricted<td>&nbsp;<tr>
 +
<td>kQ3ErrorMetaHandlerRequired<td>&nbsp;<tr>
 +
<td>kQ3ErrorNeedRequiredMethods<td>&nbsp;<tr>
 +
<td>kQ3ErrorNoSubClassType<td>&nbsp;<tr>
 +
<td>kQ3ErrorUnknownElementType<td>&nbsp;<tr>
 +
<td>kQ3ErrorNotSupported<td>&nbsp;<tr>
 +
<td>kQ3ErrorNoExtensionsFolder<td>&nbsp;<tr>
 +
<td>kQ3ErrorExtensionError<td>&nbsp;<tr>
 +
<td>kQ3ErrorPrivateExtensionError<td>&nbsp;<tr>
 +
<td>kQ3ErrorBadStringType<td>&nbsp;<tr>
 +
<td>kQ3WarningInternalException<td>&nbsp;<tr>
 +
<td>kQ3WarningNoObjectSupportForDuplicateMethod<td>&nbsp;<tr>
 +
<td>kQ3WarningNoObjectSupportForWriteMethod<td>&nbsp;<tr>
 +
<td>kQ3WarningNoObjectSupportForReadMethod<td>&nbsp;<tr>
 +
<td>kQ3WarningNoObjectSupportForDrawMethod<td>&nbsp;<tr>
 +
<td>kQ3WarningUnknownElementType<td>&nbsp;<tr>
 +
<td>kQ3WarningTypeAndMethodAlreadyDefined<td>&nbsp;<tr>
 +
<td>kQ3WarningTypeIsOutOfRange<td>&nbsp;<tr>
 +
<td>kQ3WarningTypeHasNotBeenRegistered<td>&nbsp;<tr>
 +
<td>kQ3WarningInvalidSubObjectForObject<td>&nbsp;<tr>
 +
<td>kQ3WarningInvalidHexString<td>&nbsp;<tr>
 +
<td>kQ3WarningUnknownObject<td>&nbsp;<tr>
 +
<td>kQ3WarningInvalidTableOfContents<td>&nbsp;<tr>
 +
<td>kQ3WarningUnresolvableReference<td>&nbsp;<tr>
 +
<td>kQ3WarningNoAttachMethod<td>&nbsp;<tr>
 +
<td>kQ3WarningInconsistentData<td>&nbsp;<tr>
 +
<td>kQ3WarningLowMemory<td>&nbsp;<tr>
 +
<td>kQ3WarningPossibleMemoryLeak<td>&nbsp;<tr>
 +
<td>kQ3NoticeDataAlreadyEmpty<td>&nbsp;<tr>
 +
<td>kQ3NoticeMethodNotSupported<td>&nbsp;<tr>
 +
<td>kQ3NoticeObjectAlreadySet<td>&nbsp;</table>
    
=See Also=
 
=See Also=

Navigation menu