lol
This commit is contained in:
parent
c40a38253d
commit
6c47960b69
4 changed files with 66 additions and 0 deletions
|
@ -37,6 +37,19 @@ int main(int argc, char** argv)
|
|||
oglu::LoadGLLoader((GLADloadproc)glfwGetProcAddress);
|
||||
oglu::SetViewport(0, 0, windowSize, windowSize);
|
||||
|
||||
float vertices[] = {
|
||||
-0.5f, -0.5f, 0.0f,
|
||||
0.5f, -0.5f, 0.0f,
|
||||
0.0f, 0.5f, 0.0f
|
||||
};
|
||||
|
||||
oglu::VertexAttribute topology[] = {
|
||||
{ 0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0 }
|
||||
};
|
||||
|
||||
oglu::Object(vertices, sizeof(vertices), nullptr, 0, topology, sizeof(topology));
|
||||
|
||||
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
processInput(window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue