#include <glshader.h>
Public Member Functions | |
| Vec4ShaderParameter & | operator= (const Vec4f &) |
| Vec4ShaderParameter (int _obj, const char *name) | |
| Vec4ShaderParameter () | |
Private Attributes | |
| int | slot |
|
|
Definition at line 120 of file glshader.cpp. 00120 : 00121 slot(-1) 00122 { 00123 }
|
|
||||||||||||
|
Definition at line 125 of file glshader.cpp. References glx::glGetUniformLocationARB, and slot. 00126 {
00127 slot = glx::glGetUniformLocationARB(obj, name);
00128 }
|
|
|
Definition at line 131 of file glshader.cpp. References glx::glUniform4fARB, and slot. 00132 {
00133 if (slot != -1)
00134 glx::glUniform4fARB(slot, v.x, v.y, v.z, v.w);
00135 return *this;
00136 }
|
|
|
Definition at line 123 of file glshader.h. Referenced by operator=(), and Vec4ShaderParameter(). |
1.4.1