Kerbal Space Program
1.12.4
|
Classes | |
class | CBTextureAtlasPoint |
Container class for information on each point in the celestial body texture atlas More... | |
Public Member Functions | |
virtual CBTextureAtlasPoint | GetCBTextureAtlasPoint (double lat, double lon) |
Gets the CBTextureAtlasPoint object representing the texture indices and their strengths at a certain point on the celestial body. More... | |
CBTextureAtlasPoint | GetPixelCBTextureAtlasPoint (double x, double y) |
Gets the CBTextureAtlasPoint object representing the texture indices and their strengths at a certain point on the texture map. It will average the value between the 4 closest pixel values. More... | |
Public Member Functions inherited from MapSO | |
virtual Texture2D | CompileGreyscale () |
virtual Texture2D | CompileHeightAlpha () |
virtual Texture2D | CompileRGB () |
virtual Texture2D | CompileRGBA () |
virtual Texture2D | CompileToTexture () |
virtual Texture2D | CompileToTexture (byte filter) |
virtual void | CreateMap (MapDepth depth, Texture2D tex) |
virtual void | CreateMap (MapDepth depth, string name, int width, int height) |
virtual Color[] | CreateMapRGBQuantized (Texture2D tex, float quantize) |
virtual Color[] | CreateMapRGBQuantized (Texture2D tex, int quantize) |
virtual void | CreateMapRGBQuantized (Texture2D tex, Color[] quantize) |
virtual byte | GetPixelByte (int x, int y) |
virtual Color | GetPixelColor (int x, int y) |
virtual Color | GetPixelColor (float x, float y) |
virtual Color | GetPixelColor (double x, double y) |
virtual Color32 | GetPixelColor32 (int x, int y) |
virtual Color | GetPixelColor32 (float x, float y) |
virtual Color | GetPixelColor32 (double x, double y) |
virtual float | GetPixelFloat (int x, int y) |
virtual float | GetPixelFloat (float x, float y) |
virtual float | GetPixelFloat (double x, double y) |
virtual HeightAlpha | GetPixelHeightAlpha (int x, int y) |
virtual HeightAlpha | GetPixelHeightAlpha (float x, float y) |
virtual HeightAlpha | GetPixelHeightAlpha (double x, double y) |
virtual byte | GreyByte (int x, int y) |
virtual float | GreyFloat (int x, int y) |
virtual byte[] | PixelByte (int x, int y) |
virtual void | SetPixel (int x, int y, byte b) |
virtual void | SetPixel (float x, float y, byte b) |
Additional Inherited Members | |
Public Types inherited from MapSO | |
enum | MapDepth : int { MapDepth.Greyscale = 1, MapDepth.HeightAlpha = 2, MapDepth.RGB = 3, MapDepth.RGBA = 4 } |
Protected Member Functions inherited from MapSO | |
void | ConstructBilinearCoords (float x, float y) |
virtual void | ConstructBilinearCoords (double x, double y) |
void | CreateGreyscaleFromAlpha (Texture2D tex) |
void | CreateGreyscaleFromRGB (Texture2D tex) |
void | CreateHeightAlpha (Texture2D tex) |
void | CreateRGB (Texture2D tex) |
void | CreateRGBA (Texture2D tex) |
Color[] | CreateRGBQuantized (Texture2D tex, int quantize) |
Color[] | CreateRGBQuantized (Texture2D tex, float quantize) |
void | CreateRGBQuantized (Texture2D tex, Color[] quantize) |
int | PixelIndex (int x, int y) |
Protected Attributes inherited from MapSO | |
int | _bpp |
byte[] | _data |
int | _height |
bool | _isCompiled |
string | _name |
int | _rowWidth |
int | _width |
float | centerX |
double | centerXD |
int | index |
float | midX |
double | midXD |
int | minX |
float | retVal |
double | retValD |
byte | val |
Static Protected Attributes inherited from MapSO | |
static float | Byte2Float = 1f / 255f |
static float | Float2Byte = 255f |
Properties inherited from MapSO | |
int | BitsPerPixel [get] |
MapDepth | Depth [get] |
int | Height [get] |
bool | IsCompiled [get] |
string | MapName [get] |
int | RowWidth [get] |
int | Size [get] |
string | SizeString [get] |
int | Width [get] |
|
inlinevirtual |
Gets the CBTextureAtlasPoint object representing the texture indices and their strengths at a certain point on the celestial body.
lat | Latitude on the celestial body. |
lon | Longitude on the celestial body. |
|
inline |
Gets the CBTextureAtlasPoint object representing the texture indices and their strengths at a certain point on the texture map. It will average the value between the 4 closest pixel values.
x | Pixel width value to sample. |
y | Pixel height value to sample. |