NPAPI:Pepper: Difference between revisions

449 bytes removed ,  29 October 2009
Line 130: Line 130:
} NPWindow;
} NPWindow;
</pre>
</pre>
A plugin will request rendering contexts using the following structure.
<pre>
typedef struct _NPRenderContext
{
  union {
    struct {
      void* region;
      int32 stride;
    } graphicsRgba;
  } u;
} NPRenderContext;
</pre>
We expect to use the term renderer in a more general sense than just graphics, so we present NPAPI with a structure that can be extended as other interfaces are added (e.g., audio, 3D graphics, hardware accelerators).


=== Getting a Context to Render ===
=== Getting a Context to Render ===
89

edits