Re: OpenGL ES 3.0 on Desktop

"MZIskandar" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hello.
Why do you want to use OpenGL ES for desktop?
OpenGL ES (embedded system) are made for mobile.

GLEW is GL Extension Wrangler. It helps you to setup the "Extensions", which I don't use.

To use OpenGL include:
#include <SDL2/SDL_opengl.h>

To use extension add (tedious without GLEW but you will really know wjat to use :
eg: static PFNGLGENBUFFERSPROC glGenBuffers;, and so on..
later in main, eg: glGenBuffers = SDL_GL_GetProcAddress("glGenBuffers");

Creating OpenGL window:
SDL_Window* myWindow = NULL;
myWindow = SDL_CreateWindow("Window Title", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_OPENGL);

Lots of other example in SDL2-2.0.5\test directory (which I overlook when I started learning SDL)
http://libsdl.org/release/SDL2-2.0.5.zip

------------------------
http://digitalspine.blogspot.com

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.