#include <glshader.h>
Public Member Functions | |
| FloatShaderParameter (int _obj, const char *name) | |
| FloatShaderParameter () | |
| FloatShaderParameter & | operator= (float) |
Private Attributes | |
| int | slot |
|
|
Definition at line 74 of file glshader.cpp. 00074 : 00075 slot(-1) 00076 { 00077 }
|
|
||||||||||||
|
Definition at line 79 of file glshader.cpp. References glx::glGetUniformLocationARB, and slot. 00080 {
00081 slot = glx::glGetUniformLocationARB(obj, name);
00082 }
|
|
|
Definition at line 85 of file glshader.cpp. References glx::glUniform1fARB, and slot. 00086 {
00087 if (slot != -1)
00088 glx::glUniform1fARB(slot, f);
00089 return *this;
00090 }
|
|
|
Definition at line 96 of file glshader.h. Referenced by FloatShaderParameter(), and operator=(). |
1.4.1