add mesh class
add mesh pool to state class
add render-mesh function to state class
remove obsolete code