1 #ifndef __render_surface_h
2 #define __render_surface_h
7 struct RrPlanarSurface {
8 enum RrSurfaceColorType colortype;
10 struct RrColor primary;
11 struct RrColor secondary;
14 struct RrNonPlanarSurface {
19 struct RrPlanarSurface planar;
20 struct RrNonPlanarSurface nonplanar;
24 struct RrInstance *inst;
26 enum RrSurfaceType type;
27 union RrSurfaceData data;
29 /* This member is created inside Render if parent != NULL, but is passed
30 in if parent == NULL and should not be destroyed!
32 Always check for this to be None before rendering it. Just skip by
33 (and assert) if it is None.
35 Window win; /* XXX this can optionally be None if parent != NULL ... */
38 struct RrTexture *texture;
40 struct RrSurface *parent;
45 struct RrTexture *RrSurfaceTexture(struct RrSurface *sur, int texnum);