| 195 | } |
| 196 | |
| 197 | void television::destroy() |
| 198 | { |
| 199 | if (texture != NULL) |
| 200 | { |
| 201 | RwTextureDestroy(texture); |
| 202 | } |
| 203 | else if (raster != NULL) |
| 204 | { |
| 205 | RwRasterDestroy(raster); |
| 206 | } |
| 207 | if (cam != NULL) |
| 208 | { |
| 209 | RwFrame* cam_frame = (RwFrame*)cam->object.object.parent; |
| 210 | if (cam_frame != NULL) |
| 211 | { |
| 212 | _rwObjectHasFrameSetFrame(cam, NULL); |
| 213 | RwFrameDestroy(cam_frame); |
| 214 | } |
| 215 | RpWorldRemoveCamera(world, cam); |
| 216 | RwCameraDestroy(cam); |
| 217 | } |
| 218 | if (world != NULL) |
| 219 | { |
| 220 | RpWorldDestroy(world); |
| 221 | } |
| 222 | cam = NULL; |
| 223 | raster = NULL; |
| 224 | world = NULL; |
| 225 | } |
| 226 | |
| 227 | void television::set_background(iColor_tag color) |
| 228 | { |