MCPcopy Create free account
hub / github.com/OGRECave/ogre / _setPointSpritesEnabled

Method _setPointSpritesEnabled

RenderSystems/GL/src/OgreGLRenderSystem.cpp:1268–1283  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers 1

_setPassMethod · 0.45

Calls 3

getCapabilitiesFunction · 0.85
setEnabledMethod · 0.45
activateGLTextureUnitMethod · 0.45

Tested by

no test coverage detected