;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;Object and textures (c) Anthony Bowden 2002.
;www.railsimroutes.co.uk
;with kind permission of Anthony Bowden.
;Originally from West Coast Main Line BVE 
;Route Object Watford Jcn - Milton Keynes Central
;
;--------------------------------------
;
;Please seek permission before using
;any Maybank files in your own route.
;
;see 'Readme.txt' file.
;


CreateMeshBuilder,
AddVertex,-8.76, 3.9, 23,
AddVertex,-8.76, 3.9, 2,
AddVertex,-8.76, 1.1, 2,
AddVertex,-8.76, 1.1, 23,
AddVertex,-4.5, 3.9, 2,
AddVertex,-4.5, 1.1, 2,
AddVertex,-4.5, 3.9, 23,
AddVertex,-4.5, 1.1, 23,
AddFace,0,1,2,3,;L Side
AddFace,1,4,5,2,;Front
AddFace,4,6,7,5,;R Side
;Color 170,170,170

GenerateNormals,

LoadTexture,Hemel_1.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 0.415, 0,
SetTextureCoordinates,2, 0.415, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0.59, 0,
SetTextureCoordinates,5, 0.59, 1,
SetTextureCoordinates,6, 1, 0,
SetTextureCoordinates,7, 1, 1,

;Roof Parts
CreateMeshBuilder,
AddVertex,-10.76, 4.8, 25,
AddVertex,-10.76, 4.8, 0,
AddVertex,-10.76, 3.9, 0,
AddVertex,-10.76, 3.9, 25,
AddVertex,-2.5, 4.8, 0,
AddVertex,-2.5, 3.9, 0,
AddVertex,-2.5, 4.8, 25,
AddVertex,-2.5, 3.9, 25,
AddFace,0,1,2,3,;L Side
AddFace,1,4,5,2,;Front
AddFace,4,6,7,5,;R Side
;Color 170,170,170

GenerateNormals,

LoadTexture,Hemel_s1.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 2, 0,
SetTextureCoordinates,5, 2, 1,
SetTextureCoordinates,6, 3, 0,
SetTextureCoordinates,7, 3, 1,

;Roof under
CreateMeshBuilder,
AddVertex,-10.76, 3.9, 25,
AddVertex,-10.76, 3.9, 0,
AddVertex,-2.5, 3.9, 0,
AddVertex,-2.5, 3.9, 25,
AddFace,0,1,2,3,
SetColor,200,200,200,
GenerateNormals,

