… | |
… | |
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) |