struct RrSurface *parent);
void RrSurfaceFree(struct RrSurface *sur);
+Window RrSurfaceWindow(struct RrSurface *sur);
struct RrTexture *RrSurfaceTexture(struct RrSurface *sur, int texnum);
#endif
{
struct RrSurface *sur;
- /* cant be a child of a prototype! */
+ /* can't be a child of a prototype! */
assert(parent->inst);
if (!parent->inst) return NULL;
{
struct RrSurface *sur;
- /* cant be a child of a prototype! */
+ /* can't be a child of a prototype! */
assert(parent->inst);
if (!parent->inst) return NULL;
}
}
+Window RrSurfaceWindow(struct RrSurface *sur)
+{
+ /* can't get a window for a prototype */
+ assert(sur->inst);
+ if (!sur->inst) return None;
+
+ return sur->win;
+}
+
struct RrTexture *RrSurfaceTexture(struct RrSurface *sur, int texnum)
{
assert(texnum < sur->ntextures);