Fixes discontinued functions and variables

- References to discontinued functions removed.
- Changed screen width and height to use constant define.
- Fixes check for null pointer of tree filename.
Adds template for ReadTexture and setMaterial

- Empty functions for ReadTexture and setMaterial created.