From: Mark B. <mb...@0x...> - 2000-05-31 16:20:48
|
On Tue, 30 May 2000, "David Clark wrote: > A couple of quick questions: > > 1) is there a way to query an existing surface, to find out it's > colour depth, or should I just use video_info()? I've added a get_depth() and get_depth_bits() methods to Surface objects. I have no idea how that one got past me ;-) I've removed INFO_VIDEO from video_info, because it duplicates get_depth_bits(), and I doubt anyone has used it. Sorry to toss a monkey wrench in your documentation. > 2) is there a way to find out whether an existing surface is in video > memory or main system memory - in other words, whether my > sdl.HWSURFACE request is granted or not? I've added a get_info() method to surface objects. This returns a bitmask indicating the state of the surface. You can then & the mask with the various surface creation routines. For instance: flags = surface.get_info() if(flags & sdl.HWSURFACE): ... I'll do a release shortly, so whatever you're writing will work out of the box. If you find you need any other features, let me know. |