| 47 | }; |
| 48 | |
| 49 | dp::BindingInfo GetMarkerBindingInfo() |
| 50 | { |
| 51 | dp::BindingInfo info(2); |
| 52 | dp::BindingDecl & normal = info.GetBindingDecl(0); |
| 53 | normal.m_attributeName = "a_normal"; |
| 54 | normal.m_componentCount = 2; |
| 55 | normal.m_componentType = gl_const::GLFloatType; |
| 56 | normal.m_offset = 0; |
| 57 | normal.m_stride = sizeof(MarkerVertex); |
| 58 | |
| 59 | dp::BindingDecl & texCoord = info.GetBindingDecl(1); |
| 60 | texCoord.m_attributeName = "a_colorTexCoords"; |
| 61 | texCoord.m_componentCount = 2; |
| 62 | texCoord.m_componentType = gl_const::GLFloatType; |
| 63 | texCoord.m_offset = sizeof(glsl::vec2); |
| 64 | texCoord.m_stride = sizeof(MarkerVertex); |
| 65 | |
| 66 | return info; |
| 67 | } |
| 68 | } // namespace mp |
| 69 | |
| 70 | MyPosition::MyPosition(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::TextureManager> mng) |
no outgoing calls
no test coverage detected