Talk:Tutorial2: VAOs, VBOs, Vertex and Fragment Shaders (C / SDL)

From OpenGL.org
Jump to: navigation, search
This article needs cleanup. A proper tutorial would actually explain how all of these things work, not just regurgitate code and commenting at the user. Also, the format is poor. Alfonse 18:30, 19 August 2009 (UTC)
Also, the article could use some nice Wiki links to appropriate pages. Alfonse 18:30, 19 August 2009 (UTC)

I don' t think this is very useful. IMHO it should be along the lines of http://stackoverflow.com/questions/8923174/opengl-vao-best-practices . --Wimbledon256 (talk) 09:05, 29 November 2013 (PST)

SDL include/compilation

For compilation on Linux, I think sdl-config should be used:

  • `sdl-config --cflags` gives the proper include path for SDL headers (for example: -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT);
  • `sdl-config --libs` gives the proper library path and links with SDL (for example: -L/usr/lib -lSDL);
  • This should help compilation configuration for non-standard installations (not in /usr or /usr/local);
  • sdl-config --cflags is provided/installed with SDL;
  • This mechanism is also used by other libraries (like libpng, which has libpng-config, OpenAL, XML2, etc.);
  • Therefore, the include in C/C++ programs should be <SDL.h>, not <SDL/SDL.h>.
--Dhe 19:19, 19 August 2009 (UTC)

SDL version

The article should make it clear that the code *requires* SDL version 1.3, which is currently (2010.3.14) not the stable, officially distributed SDL version. SDL_WindowID doesn't even exist as a type in SDL 1.2

Luigi.Galli 15:26, 14 March 2010 (UTC)