ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/shader.C
(Generate patch)

Comparing libgender/shader.C (file contents):
Revision 1.20 by root, Fri Oct 29 15:58:50 2004 UTC vs.
Revision 1.21 by root, Fri Oct 29 22:32:49 2004 UTC

43 unsigned int var_i::next_id = 0; 43 unsigned int var_i::next_id = 0;
44 44
45 var_i::var_i (const char *typestr) 45 var_i::var_i (const char *typestr)
46 : typestr (typestr) 46 : typestr (typestr)
47 { 47 {
48 //param = cgCreateParameter (cg_context, cgtype);
49 } 48 }
50 49
51 var_i::~var_i () 50 var_i::~var_i ()
52 { 51 {
53 //cgDestroyParameter (param);
54 } 52 }
55 53
56 stream_i::stream_i (const char *strtype) 54 stream_i::stream_i (const char *strtype)
57 : var_i (strtype) 55 : var_i (strtype)
58 { 56 {
155#endif 153#endif
156 154
157 //////////////////////////////////////////////////////////////////////////// 155 ////////////////////////////////////////////////////////////////////////////
158 156
159 int texture_units::unit_count = 8; 157 int texture_units::unit_count = 8;
160 GLenum texture_units::units[8] = 158 int texture_units::units[8] = { 7, 6, 5, 4, 3, 2, 1, 0 };
161 {
162 GL_TEXTURE7, GL_TEXTURE6, GL_TEXTURE5, GL_TEXTURE4,
163 GL_TEXTURE3, GL_TEXTURE2, GL_TEXTURE1, GL_TEXTURE0,
164 };
165 159
166 shader_object_i *cur = 0; 160 shader_object_i *cur = 0;
167 161
168 shader_object_i::shader_object_i (GLenum type) 162 shader_object_i::shader_object_i (GLenum type)
169 : type (type) 163 : type (type)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines