TGLConst reordered
typecast (Pointer -> Integer -> Pointer) removed
ogl unit is needless in 'uses'
minor changes
+ WriteResource,
+ Log class definition,
* try to fix memory leaks,
... minor changes