Using namespace Simulator original_function( this) Member_detour(GenerateSolSystem_detour, Simulator::cStarManager, void()) This class has all the effects used to display the galaxy, the "skybox" in space, etc. Detour this function if you want to change how solar systems are generated.įinally, a new class was added, Simulator::cSpaceGfx. GeneratePlanetsForStar: Called by RequirePlanetsForStar, this method is the one that actually generates planets and adds them to a solar system cStarRecord.Planets are not generated when the galaxy is generated, but only when their star is first accessed this method ensures the star will have planets. RequirePlanetsForStar: Call this method when you want to access the planets of a star record.The update also adds two new methods to the StarManager related with solar system generation: Simulator::cStar: GetStarType(), IsBinaryStar(), IsStarOrBinaryStar(), GetName()Īdded several methods related with star properties:įor those that want to add new star types, detouring these star-related methods will be necessary.Simulator::cSolarSystem: LoadBinaryStar(), LoadAsteroids().Simulator::cPlanetRecord: GetPerihelion().Simulator::cBadgeManager: AddToBadgeProgress().Graphics::Texture: IsLoaded(), GetLoadedRaster().App::cViewer: SetViewWindow(), SetViewOffset(), SetViewport(), SetPerspectiveProjection(), SetParallelProjection(), Dispose().Many functions in the Terrain namespace, related with rendering.Terrain::cTerrainStateMgr::TerrainTextures.Graphics::ITextureManager, now it's completely finished!.Simulator::cCelestialBody can be instantiated now.Terrain::cTerrainSphere and Terrain::cTerrainSphereQuad, both with many rendering functions that can be detoured.Graphics::cBufferDraw, a convenience class that can be used to draw rectangles (for example, to draw textures).This update also completes the TextureManager class and improves the RenderTargetManager, allowing you to do more complex rendering.Īnd there's even more! To make modding the terrain easier, I've reconstructed some terrain rendering methods' source code: įor those interested in adding new star types, some star-related functions have also been reconstructed: Terrain update! This update improves and adds many terrain classes like cTerrainSphere, cTerrainSphereQuad and cTerrainShaderMgr, including some of their rendering methods, like cTerrainSphereQuad::RenderWater.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |