PDA

View Full Version : GLT_ATTRIBUTE_COLOR was not declared in this scope



bcthund
11-11-2010, 05:37 PM
<div class="ubbcode-block"><div class="ubbcode-header">Click to reveal.. <input type="button" class="form-button" value="Show me!" onclick="toggle_spoiler(this, 'Yikes, my eyes!', 'Show me!')" />]<div style="display: none;">
I've been going through the SuperBible 5th edition trying to get an understanding of how these shaders work and everything was going fine and compiling until I added a line of code including GLT_ATTRIBUTE_COLOR and GLT_ATTRIBUTE_VERTEX.

Everything else that I have incorporated for setting up, compiling, and linking shaders works but for some reason I get:


'GLT_ATTRIBUTE_COLOR' was not declared in this scope
'GLT_ATTRIBUTE_VERTEX' was not declared in this scope


Do I need something other than GL in my linker list?
[/QUOTE]</div>

EDIT: Scratch that, I finally found out that it's not actually part of OpenGL, rather part of an enumeration that I somehow completely overlooked.