Knowing the  GLSL version of your GPU
Download
1 / 8

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION) - PowerPoint PPT Presentation


  • 154 Views
  • Uploaded on

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION). GLSL 1.20 or later?. GLSL 1.3 or Later . Great Tutorial for OpenGL 3.0 or later: http:// www.opengl-tutorial.org. GLFW keyboard call back. glfwSetCharCallback ( My_Key_Callback );.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION)' - julian-snow


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Knowing the GLSL version of your GPU

glGetString(GL_SHADING_LANGUAGE_VERSION)

GLSL 1.20 or later?


GLSL 1.3 or Later

Great Tutorial for

OpenGL 3.0 or later:

http://www.opengl-tutorial.org


GLFW keyboard call back

glfwSetCharCallback(My_Key_Callback);

void My_Key_Callback(int character, int action)

{

if (action == GLFW_PRESS) {

switch (character) {

case '1':

light_switch[0] = (light_switch[0]+1)%2;

break;

case 'f':

shader_mode = 'f';

break;

default:

break;

}

}


GLSL 1.2 or older

Skeleton Code provide on ICG course web

Tutorial for GLSL 1.2

http://www.lighthouse3d.com/tutorials/glsl-tutorial/




Strongly recommend to implement some transformations!

The difference between the shaders can be easily shown


GLSL quick reference guide

http://www.opengl.org/documentation/glsl/


ad