All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Quad.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Rendering.h"
6 #include "Types.h"
7 #include "VectorMathDecl.h"
8 #include "Geometry.h"
9 #include <vector>
10 
11 namespace Eegeo
12 {
13  namespace Rendering
14  {
15  namespace Geometry
16  {
17  Eegeo::Rendering::Mesh* CreatePositionQuad(Rendering::GlBufferPool& glBufferPool, const Rendering::VertexLayouts::VertexLayoutPool& vertexLayoutPool);
18 
19  Eegeo::Rendering::Mesh* CreatePositionQuad(float depthValue, Rendering::GlBufferPool& glBufferPool, const Rendering::VertexLayouts::VertexLayoutPool& vertexLayoutPool);
20 
21  Eegeo::Rendering::Mesh* CreatePositionUVViewportQuad(Rendering::GlBufferPool& glBufferPool, const Rendering::VertexLayouts::VertexLayoutPool& vertexLayoutPool);
22 
23  Eegeo::Rendering::Mesh* CreateTexturedViewportQuad(Rendering::GlBufferPool& glBufferPool, const Rendering::VertexLayouts::VertexLayoutPool& vertexLayoutPool, const Eegeo::Geometry::Bounds2D& positionRectViewportNormalised, const Eegeo::Geometry::Bounds2D& uvRect);
24 
25  void BuildUnitQuad(std::vector<v3>& out_vertices, std::vector<u16>& out_indices);
26  }
27  }
28 }