sorted the 3d cube being flipped
draw tex in custom control sample
added cursor support for mac. disable sleep for now..