| 1121 | } |
| 1122 | |
| 1123 | void GLRenderSystem::setGLLight(size_t index, bool lt) |
| 1124 | { |
| 1125 | setFFPLightParams(index, lt); |
| 1126 | |
| 1127 | GLenum gl_index = GL_LIGHT0 + index; |
| 1128 | |
| 1129 | if (!lt) |
| 1130 | { |
| 1131 | // Disable in the scene |
| 1132 | mStateCacheManager->setEnabled(gl_index, false); |
| 1133 | } |
| 1134 | else |
| 1135 | { |
| 1136 | GLfloat f4vals[4] = {0, 0, 0, 1}; |
| 1137 | // Disable ambient light for movables; |
| 1138 | glLightfv(gl_index, GL_AMBIENT, f4vals); |
| 1139 | |
| 1140 | // Enable in the scene |
| 1141 | mStateCacheManager->setEnabled(gl_index, true); |
| 1142 | } |
| 1143 | } |
| 1144 | |
| 1145 | //----------------------------------------------------------------------------- |
| 1146 | void GLRenderSystem::makeGLMatrix(GLfloat gl_matrix[16], const Matrix4& m) |
nothing calls this directly
no test coverage detected