Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAlanSmithee

Posted 09 November 2012 - 01:17 PM

OK! So, I'm home now and able to go through it again.

1. Look closer in the very corners of your window. It may be that there is in fact a small pixel there and the triangle is just too small that you haven't see it yet.

Wow, It's there! Right where you'd think it would be, in the top left corner ( since it has 1,1 as coords).

Im such a retard. i THOUGHT i made a 100 pixel large triangle but what I really did was that I increased ALL points by 100 so I only moved the 1 pixel large triangle 100 pixels in the posetive x and y axis. *sigh*

static const GLfloat g_vertex_buffer_data[] =
{
1.0f, 1.0f, 0.0f,
100.0f, 1.0f, 0.0f,
0.0f, 100.0f, 0.0f,
};

Works as intended!

Thanks alot m8!

#1AlanSmithee

Posted 09 November 2012 - 12:56 PM

OK! So, I'm home now and able to go through it again.

1. Look closer in the very corners of your window. It may be that there is in fact a small pixel there and the triangle is just too small that you haven't see it yet.

Wow, It's there! Right where you'd think it would be, in the top left corner ( since it has 0,0 as coords).

Im such a retard. i THOUGHT i made a 100 pixel large triangle but what I really did was that I increased ALL points by 100 so I only moved the 1 pixel large triangle 100 pixels in the posetive x and y axis. *sigh*

static const GLfloat g_vertex_buffer_data[] =
{
1.0f, 1.0f, 0.0f,
100.0f, 1.0f, 0.0f,
0.0f, 100.0f, 0.0f,
};

Works as intended!

Thanks alot m8!

PARTNERS