------------------------------- PlanetComponentDesc::MakeData Create a planet component from a descriptor
| 60 | // Create a planet component from a descriptor |
| 61 | // |
| 62 | PlanetComponent* PlanetComponentDesc::MakeData() |
| 63 | { |
| 64 | render::PlanetParams params; |
| 65 | |
| 66 | params.radius = radius; |
| 67 | params.height = height; |
| 68 | |
| 69 | params.texDiffuseId = GetHash(texDiffuse); |
| 70 | params.texDetail1Id = GetHash(texDetail1); |
| 71 | params.texDetail2Id = GetHash(texDetail2); |
| 72 | |
| 73 | params.texHeightId = GetHash(texHeight); |
| 74 | params.texHeightDetailId = GetHash(texHeightDetail); |
| 75 | |
| 76 | return new PlanetComponent(params); |
| 77 | } |
| 78 | |
| 79 | |
| 80 | //========================================= |
nothing calls this directly
no outgoing calls
no test coverage detected