[client] egl: add and use default quad helper for models

This commit is contained in:
Geoffrey McRae
2018-12-12 20:08:52 +11:00
parent 608b67af77
commit b9f8f1a0ad
5 changed files with 28 additions and 56 deletions

View File

@@ -181,24 +181,7 @@ bool egl_cursor_init(EGL_Cursor ** cursor)
return false;
}
static const GLfloat square[] =
{
-1.0f, -1.0f, 0.0f,
1.0f, -1.0f, 0.0f,
-1.0f, 1.0f, 0.0f,
1.0f, 1.0f, 0.0f
};
static const GLfloat uvs[] =
{
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f
};
egl_model_set_verticies((*cursor)->model, square, sizeof(square) / sizeof(GLfloat));
egl_model_set_uvs ((*cursor)->model, uvs , sizeof(uvs ) / sizeof(GLfloat));
egl_model_set_default((*cursor)->model);
return true;
}