//***********************************************************************//
// //
// - "Talk to me like I'm a 3 year old!" Programming Lessons - //
// //
// $Author: Ben Humphrey digiben@gametutorilas.com //
// //
// $Program: ShadersIntro //
// //
// $Description: Using GLSL we create a wavy sphere in wireframe //
// //
//***********************************************************************//
// This is a compiler directive that includes libraries (For Visual Studio).
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#include "main.h" // This includes our header file
bool g_bFullScreen = TRUE; // Set full screen as default
HWND g_hWnd; // This is the handle for the window
RECT g_rRect; // This holds the window dimensions
HDC g_hDC; // General HDC - (handle to device context)
HGLRC g_hRC; // General OpenGL_DC - Our Rendering Context for OpenGL
HINSTANCE g_hInstance; // This holds the global hInstance for UnregisterClass() in DeInit()
/////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// *
//
// Welcome to the introduction of shaders. You will find out from now on, as you
// continue to use shaders it is going to be a bit different than the programming
// you are used to; different but more powerful. We will be using the GLSL shader
// language.
//
// * What are shaders? *
//
// Shaders are text files that are passed to the video card's GPU (Graphics Processing
// Unit), which enable extremely fast operations to be performed on each vertex and/or