Changes between Version 15 and Version 16 of GraphicsAPI
- Timestamp:
- Nov 12, 2014, 3:13:49 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GraphicsAPI
v15 v16 25 25 == Complexity == 26 26 27 The public API classes above have a total of about 170 methods and there are about 110 private methods and functions. I didn't make a distinction between private and public methods so maybe many of those 170 methods of public classes are in fact private. The public classes also have many attributes (maybe 50 total) that are public in the current Hydra design. So this graphics module is pretty complex (3400 lines of Python, 280 lines of OpenGL shader code). 27 The public API classes above have a total of about 120 public methods and attributes and about 170 private methods and attributes. 28 So this graphics module is pretty complex (3400 lines of Python, 280 lines of OpenGL shader code). 28 29 29 A first step to see how much complexity there is in the public interfaces is to mark all the private methods with leading underscores. 30 31 To get a uniform style some decision should be made about when public class attributes (or properties) are used and when methods are used. It is a mish mash in Hydra. 30 Some decision should be made about when public class attributes (or properties) are used and when methods are used. It is a mish mash in Hydra. 32 31 33 32 == Dependencies ==