{"action":"opened","issue":{"url":"https://api.github.com/repos/grimfang4/sdl-gpu/issues/48","repository_url":"https://api.github.com/repos/grimfang4/sdl-gpu","labels_url":"https://api.github.com/repos/grimfang4/sdl-gpu/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/grimfang4/sdl-gpu/issues/48/comments","events_url":"https://api.github.com/repos/grimfang4/sdl-gpu/issues/48/events","html_url":"https://github.com/grimfang4/sdl-gpu/issues/48","id":193333797,"number":48,"title":"Basic Triangle Not Drawing","user":{"login":"xgibbousx","id":6699228,"avatar_url":"https://avatars.githubusercontent.com/u/6699228?v=3","gravatar_id":"","url":"https://api.github.com/users/xgibbousx","html_url":"https://github.com/xgibbousx","followers_url":"https://api.github.com/users/xgibbousx/followers","following_url":"https://api.github.com/users/xgibbousx/following{/other_user}","gists_url":"https://api.github.com/users/xgibbousx/gists{/gist_id}","starred_url":"https://api.github.com/users/xgibbousx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgibbousx/subscriptions","organizations_url":"https://api.github.com/users/xgibbousx/orgs","repos_url":"https://api.github.com/users/xgibbousx/repos","events_url":"https://api.github.com/users/xgibbousx/events{/privacy}","received_events_url":"https://api.github.com/users/xgibbousx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T05:55:51Z","updated_at":"2016-12-04T05:55:51Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to render a simple triangle to the screen using the following tutorial code with sdl-gpu:\r\n\r\n[Tutorial Source Code](https://open.gl/content/code/c2_triangle.txt)\r\n\r\nMy code base uses sdl-gpu and I have got the 3D spinning triangles to work.  However, I can't get the basic code above to work.\r\n\r\nI am using the following paradigm:\r\n\r\n1. Initialize GLEW.\r\n2. Create Vertex Array Object.\r\n3. Create a Vertex Buffer Object and copy the vertex data to it.\r\n4. Bind Buffer and Buffer Data.\r\n5. Create and compile the vertex shader.\r\n6. Create and compile the fragment shader.\r\n7. Link the vertex and fragment shader into a shader program.\r\n8. Specify the layout of the vertex data with pointer.\r\n9. Use glDrawArrays() in a while loop.\r\n\r\nMy main \"while\" loop uses \"GPU_Clear(this->_renderer);\" and \"GPU_Flip(this->_renderer);\" wrapping the paradigm listed above.\r\n\r\nIs there something I am not doing with sdl-gpu to get the triangle above to render? "}}
{"actor":{"display_login":"xgibbousx"}}