---------------------------------------------------------------------
| 1266 | |
| 1267 | //--------------------------------------------------------------------- |
| 1268 | void GLRenderSystem::_setPointSpritesEnabled(bool enabled) |
| 1269 | { |
| 1270 | if (!getCapabilities()->hasCapability(RSC_POINT_SPRITES)) |
| 1271 | return; |
| 1272 | |
| 1273 | mStateCacheManager->setEnabled(GL_POINT_SPRITE, enabled); |
| 1274 | |
| 1275 | // Set sprite texture coord generation |
| 1276 | // Don't offer this as an option since D3D links it to sprite enabled |
| 1277 | for (ushort i = 0; i < mFixedFunctionTextureUnits; ++i) |
| 1278 | { |
| 1279 | mStateCacheManager->activateGLTextureUnit(i); |
| 1280 | glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, |
| 1281 | enabled ? GL_TRUE : GL_FALSE); |
| 1282 | } |
| 1283 | } |
| 1284 | //----------------------------------------------------------------------------- |
| 1285 | void GLRenderSystem::_setTexture(size_t stage, bool enabled, const TexturePtr &texPtr) |
| 1286 | { |
no test coverage detected