89
edits
Line 319: | Line 319: | ||
} NPDeviceContext3D;</pre> | } NPDeviceContext3D;</pre> | ||
The 3D device API specifies a number of | The 3D device API specifies a number of errors that could be returned. | ||
<pre>typedef enum { | <pre> | ||
/* | typedef enum _NPDeviceContext3DError { | ||
/* No error has ocurred. */ | |||
NPDeviceContext3DError_NoError, | |||
/* The | /* The size of a command was invalid. */ | ||
NPDeviceContext3DError_InvalidSize, | |||
/* | /* An offset was out of bounds. */ | ||
NPDeviceContext3DError_OutOfBounds, | |||
/* | /* A command was not recognized. */ | ||
NPDeviceContext3DError_UnknownCommand, | |||
/* | /* The arguments to a command were invalid. */ | ||
NPDeviceContext3DError_InvalidArguments, | |||
} | |||
/* The 3D context was lost, for example due to a power management event. The | |||
* context must be destroyed and a new one created. | |||
*/ | |||
NPDeviceContext3DError_LostContext, | |||
/* Any other error. */ | |||
NPDeviceContext3DError_GenericError | |||
} NPDeviceContext3DError; | |||
</pre> | |||
== NPP_SetWindow and Windowless Plugins == | == NPP_SetWindow and Windowless Plugins == |
edits