OpenGL Tutorials - 1 - Making a window using GLUT

preview_player
Показать описание
Here we start of our tutorials by making a window using GLUT
Рекомендации по теме
Комментарии
Автор

thx, i finally find a step by step tutorial!

rakr
Автор

Code for windows:

#include <windows.h>
#include <Gl/gl.h>
#include <GL/glut.h>

void render();
void keyboard(unsigned char key, int x, int y);

int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutInitWindowPosition(500, 500);
glutInitWindowSize(500, 500);
glutCreateWindow("Title goes here");
glutDisplayFunc(render);

glutMainLoop();
return 0;
}

void render()
{

}

alexsindledecker
Автор

Thank you so much, this really helps a lot! I use Xcode as well so it is really nice to get a tutorial on Xcode! Keep going man!

dhruvpatel
welcome to shbcf.ru