Functions | |
| bool | findIntersection (HeightMap &hMap, Vector start, Vector end, float &dist, float stopDist) |
| void | tileBitmap (Image &src, Image &dest) |
| void | addLightMapToBitmap (Image &destBitmap, HeightMap &hMap, Vector &sunPos, Vector &ambience, Vector &diffuse, ProgressCounter *counter) |
| void | addHeightToBitmap (HeightMap &hMap, Image &destBitmap, Image &destSplat1Bitmap, Image &destSplat2Bitmap, Image &slopeBitmap, Image &shoreBitmap, Image **origHeightBitmaps, int numberSources, int destBitmapScaleSize, ProgressCounter *counter) |
| void | redBitmap (Image &destBitmap) |
| void | addTexturesToBitmap (Image &destBitmap, Image &slopeBitmap, Image &shoreBitmap, Image **heightBitmaps, int numberSources) |
| void | removeWaterFromBitmap (HeightMap &hMap, Image &srcBitmap, Image &destBitmap, Image &alphaBitmap, float waterHeight) |
| void | addWaterToBitmap (HeightMap &hMap, Image &destBitmap, Image &waterBitmap, float waterHeight) |
| ImageHandle | makeArenaBitmap () |
| ImageHandle | makeArenaSurroundBitmap () |
| void | addBorderToBitmap (Image &destBitmap, int borderSize, float colors[3]) |
| void | makeBitmapTransparent (Image &output, Image &input, Image &mask) |
| void | addCircleToLandscape (ScorchedContext &context, float sx, float sy, float sw, float opacity) |
| void | addCircle (Image &destBitmap, float sx, float sy, float sw, float opacity) |
| void | addBitmapToLandscape (ScorchedContext &context, Image &srcBitmap, float sx, float sy, float scalex, float scaley, bool commit) |
| void | addBitmap (Image &destBitmap, Image &srcBitmap, float sx, float sy, float scalex, float scaley, bool commit) |
| void | scalePlanBitmap (Image &destBitmap, Image &srcIncBitmap, int landscapeX, int landscapeY) |
| void ImageModifier::addBitmap | ( | Image & | destBitmap, | |
| Image & | srcBitmap, | |||
| float | sx, | |||
| float | sy, | |||
| float | scalex, | |||
| float | scaley, | |||
| bool | commit | |||
| ) |
Definition at line 805 of file GLImageModifier.cpp.
References GLTexture::draw(), Image::getBits(), Image::getComponents(), Image::getHeight(), Landscape::getMainMap(), Landscape::getMainTexture(), Image::getWidth(), GL_RGB, GL_TEXTURE_2D, GL_UNPACK_ROW_LENGTH, GL_UNSIGNED_BYTE, glPixelStorei(), glTexSubImage2D(), Landscape::instance(), int(), MAX, MIN, and GLState::TEXTURE_ON.
Referenced by addBitmapToLandscape().
| void ImageModifier::addBitmapToLandscape | ( | ScorchedContext & | context, | |
| Image & | srcBitmap, | |||
| float | sx, | |||
| float | sy, | |||
| float | scalex, | |||
| float | scaley, | |||
| bool | commit | |||
| ) |
Definition at line 784 of file GLImageModifier.cpp.
References addBitmap(), LandscapeMaps::getGroundMaps(), Image::getHeight(), GroundMaps::getLandscapeHeight(), ScorchedContext::getLandscapeMaps(), GroundMaps::getLandscapeWidth(), Landscape::getMainMap(), Image::getWidth(), and Landscape::instance().
Referenced by TankMovement::moveTank(), and PlacementShadowDefinition::updateLandscapeTexture().
| void ImageModifier::addBorderToBitmap | ( | Image & | destBitmap, | |
| int | borderSize, | |||
| float | colors[3] | |||
| ) |
Definition at line 643 of file GLImageModifier.cpp.
References DIALOG_ASSERT, GroundMaps::getArenaHeight(), GroundMaps::getArenaWidth(), GroundMaps::getArenaX(), GroundMaps::getArenaY(), Image::getBitsOffset(), Image::getComponents(), LandscapeMaps::getGroundMaps(), Image::getHeight(), GroundMaps::getLandscapeHeight(), ScorchedContext::getLandscapeMaps(), GroundMaps::getLandscapeWidth(), Image::getWidth(), ScorchedClient::instance(), and int().
| void ImageModifier::addCircle | ( | Image & | destBitmap, | |
| float | sx, | |||
| float | sy, | |||
| float | sw, | |||
| float | opacity | |||
| ) |
Definition at line 735 of file GLImageModifier.cpp.
References Image::getBits(), Image::getHeight(), Image::getWidth(), int(), MAX, and MIN.
Referenced by addCircleToLandscape(), MissileActionRenderer::draw(), and ParticleRendererQuads::renderParticle().
| void ImageModifier::addCircleToLandscape | ( | ScorchedContext & | context, | |
| float | sx, | |||
| float | sy, | |||
| float | sw, | |||
| float | opacity | |||
| ) |
Definition at line 721 of file GLImageModifier.cpp.
References addCircle(), LandscapeMaps::getGroundMaps(), Image::getHeight(), GroundMaps::getLandscapeHeight(), ScorchedContext::getLandscapeMaps(), GroundMaps::getLandscapeWidth(), Landscape::getMainMap(), Image::getWidth(), and Landscape::instance().
Referenced by PlacementShadowDefinition::updateLandscapeTexture().
| void ImageModifier::addHeightToBitmap | ( | HeightMap & | hMap, | |
| Image & | destBitmap, | |||
| Image & | destSplat1Bitmap, | |||
| Image & | destSplat2Bitmap, | |||
| Image & | slopeBitmap, | |||
| Image & | shoreBitmap, | |||
| Image ** | origHeightBitmaps, | |||
| int | numberSources, | |||
| int | destBitmapScaleSize, | |||
| ProgressCounter * | counter | |||
| ) |
Definition at line 190 of file GLImageModifier.cpp.
References fixed::asFloat(), FixedVector::asVector(), ImageFactory::createBlank(), fixed::fromFloat(), Image::getBits(), Image::getHeight(), getHeight(), HeightMap::getHeight(), HeightMap::getInterpHeight(), HeightMap::getInterpNormal(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), ImageItterator::getPos(), Image::getWidth(), GL_RGB, GL_UNSIGNED_BYTE, int(), ProgressCounter::setNewPercentage(), and ImageItterator::wrap.
Referenced by Landscape::generate().
| void ImageModifier::addLightMapToBitmap | ( | Image & | destBitmap, | |
| HeightMap & | hMap, | |||
| Vector & | sunPos, | |||
| Vector & | ambience, | |||
| Vector & | diffuse, | |||
| ProgressCounter * | counter | |||
| ) |
Definition at line 93 of file GLImageModifier.cpp.
References fixed::asFloat(), FixedVector::asVector(), Vector::dotP(), findIntersection(), fixed::fromFloat(), Image::getBits(), Image::getHeight(), HeightMap::getInterpHeight(), HeightMap::getInterpNormal(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), Image::getWidth(), GL_FLOAT, GL_RGB, LANG_RESOURCE, MIN, ProgressCounter::setNewOp(), and ProgressCounter::setNewPercentage().
Referenced by Landscape::generate().
| void ImageModifier::addTexturesToBitmap | ( | Image & | destBitmap, | |
| Image & | slopeBitmap, | |||
| Image & | shoreBitmap, | |||
| Image ** | heightBitmaps, | |||
| int | numberSources | |||
| ) |
Definition at line 443 of file GLImageModifier.cpp.
References Image::getBits(), Image::getHeight(), Image::getWidth(), and MIN.
Referenced by Landscape::generate().
| void ImageModifier::addWaterToBitmap | ( | HeightMap & | hMap, | |
| Image & | destBitmap, | |||
| Image & | waterBitmap, | |||
| float | waterHeight | |||
| ) |
Definition at line 535 of file GLImageModifier.cpp.
References fixed::asFloat(), fixed::fromFloat(), Image::getBits(), Image::getHeight(), HeightMap::getInterpHeight(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), Image::getWidth(), and ImageItterator::wrap.
Referenced by Landscape::updatePlanTexture().
| bool ImageModifier::findIntersection | ( | HeightMap & | hMap, | |
| Vector | start, | |||
| Vector | end, | |||
| float & | dist, | |||
| float | stopDist | |||
| ) |
Definition at line 35 of file GLImageModifier.cpp.
References fixed::asFloat(), HeightMap::getHeight(), HeightMap::getMapHeight(), and HeightMap::getMapWidth().
Referenced by addLightMapToBitmap().
| ImageHandle ImageModifier::makeArenaBitmap | ( | ) |
Definition at line 589 of file GLImageModifier.cpp.
References ImageFactory::createBlank(), GroundMaps::getArenaHeight(), GroundMaps::getArenaWidth(), GroundMaps::getArenaX(), GroundMaps::getArenaY(), ImageHandle::getBits(), LandscapeMaps::getGroundMaps(), ImageHandle::getHeight(), GroundMaps::getLandscapeHeight(), ScorchedContext::getLandscapeMaps(), GroundMaps::getLandscapeWidth(), ScorchedContext::getOptionsTransient(), OptionsTransient::getWallColor(), ImageHandle::getWidth(), and ScorchedClient::instance().
Referenced by Landscape::generate().
| ImageHandle ImageModifier::makeArenaSurroundBitmap | ( | ) |
Definition at line 626 of file GLImageModifier.cpp.
References ImageFactory::createBlank(), ImageHandle::getBits(), ImageHandle::getHeight(), ScorchedContext::getOptionsTransient(), OptionsTransient::getWallColor(), ImageHandle::getWidth(), and ScorchedClient::instance().
Referenced by Landscape::generate().
Definition at line 700 of file GLImageModifier.cpp.
References Image::getBits(), Image::getHeight(), and Image::getWidth().
Referenced by Water::generate(), and Landscape::generate().
| void ImageModifier::redBitmap | ( | Image & | destBitmap | ) |
Definition at line 427 of file GLImageModifier.cpp.
References Image::getBits(), Image::getHeight(), and Image::getWidth().
Referenced by Landscape::generate().
| void ImageModifier::removeWaterFromBitmap | ( | HeightMap & | hMap, | |
| Image & | srcBitmap, | |||
| Image & | destBitmap, | |||
| Image & | alphaBitmap, | |||
| float | waterHeight | |||
| ) |
Definition at line 486 of file GLImageModifier.cpp.
References fixed::asFloat(), DIALOG_ASSERT, fixed::fromFloat(), Image::getBits(), Image::getHeight(), HeightMap::getInterpHeight(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), and Image::getWidth().
Referenced by Landscape::updatePlanATexture().
| void ImageModifier::scalePlanBitmap | ( | Image & | destBitmap, | |
| Image & | srcIncBitmap, | |||
| int | landscapeX, | |||
| int | landscapeY | |||
| ) |
Definition at line 886 of file GLImageModifier.cpp.
References Image::createResize(), ImageHandle::getBits(), Image::getBits(), ImageHandle::getComponents(), Image::getComponents(), ImageHandle::getHeight(), Image::getHeight(), ImageHandle::getWidth(), Image::getWidth(), int(), MAX, and MIN.
Definition at line 73 of file GLImageModifier.cpp.
References Image::getBits(), Image::getHeight(), and Image::getWidth().
1.5.3