6 #include "IPinViewFactory.h"
11 #include "AtlasTexturePageLayout.h"
23 : m_pageLayout(pageLayout)
31 float width=Math::Abs(uvBounds.max.x-uvBounds.min.x)*m_pageLayout.GetPageWidth();
32 float height=Math::Abs(uvBounds.max.y-uvBounds.min.y)*m_pageLayout.GetPageHeight();
35 vertices[0].x = -width/2.0f;
39 vertices[1].x = -width/2.0f;
40 vertices[1].y = height;
43 vertices[2].x = width/2.0f;
44 vertices[2].y = height;
48 modelBounds.Encapsulate(vertices[0]);
49 modelBounds.Encapsulate(vertices[1]);
50 modelBounds.Encapsulate(vertices[2]);
52 return Eegeo_NEW(
PinView)(pinModel, modelBounds);