O'Reilly logo

OpenGL 4.0 Shading Language Cookbook by David Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Getting Started with GLSL 4.0

In this chapter, we will cover:

  • Using the GLEW library to access the latest OpenGL functionality
  • Using the GLM library for mathematics
  • Determining the GLSL and OpenGL version
  • Compiling a shader
  • Linking a shader program
  • Sending data to a shader using per-vertex attributes and vertex buffer objects
  • Getting a list of active vertex input attributes and indices
  • Sending data to a shader using uniform variables
  • Getting a list of active uniform variables
  • Using uniform blocks and uniform buffer objects
  • Building a C++ shader program class

Introduction

The OpenGL Shading Language (GLSL) Version 4.0 brings unprecedented power and flexibility to programmers interested in creating modern, interactive, graphical programs. It allows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required