modern OpenGL - snake in C / C++

preview_player
Показать описание
source code:

references:

background music:
Рекомендации по теме
Комментарии
Автор

average if ()
{
fan
}
vs if () {
enjoyer
}

kvbc
Автор

Hey, it an amazing tutorial. I started learning OpenGL. I got an error, couldn't find the solution.
I tried typing by following the video, still couldn't find a solution

//code: line:355
snake = (struct Snake){
.counter = 1,
.positions[0] = (GLuint) (rand() % (GRID_COUNT_X * GRID_COUNT_Y)),
.direction = PAUSE
};

//error:
main.c:355:12: error: expected primary-expression before 'struct'
snake = (struct Snake){


and,

main.c:355:12: error: expected ')' before 'struct'

punisherioi
Автор

Video is Sped up ✓ - Annoying Background Music ✓ - No explanation ✓ - "Stylish" unintelligible font ✓ - "Cool" Channel name ✓ - Instantly Thumbed Down, and looked for another video...

FrankBudino